1. #1

    Need help Building some Speed Freak skill games

    Hello can someone help me with some kind of Visual Flowchart to controle the bike like in the skills game Speed Freak in Big Sands. The bike starts out with about 250% power but the longer you hold the gas the power drains to 0% untill you stop pressing the gas then the power slowly restores its self.
    Thanks
    Check out my other tracks at
    D Seth Gecko
    Share this post

  2. #2
    Jarr3tt88's Avatar Senior Member
    Join Date
    Jan 2013
    Posts
    3,520

    Re: Need help Building some Speed Freak skill games

    Put the power on a variable datasource. have that increase by set value event (or decrease) with 'a' button on down (or release) Youll need the value to be going through a generic filter to determine your max/min number so it doesnt just increase or decrease forever Im tired to night, can make a video if someone else doesnt come along by then and explain this a bit better for you.

    Ok I think is good enough to show you what you are looking for. You can always change how it decreases by using a curved data source instead of decrease event and interval trigger.

    http://puu.sh/1NTtW
    Share this post

  3. #3

    Re: Need help Building some Speed Freak skill games

    Thanks I will get started on that.
    Share this post

  4. #4
    Jarr3tt88's Avatar Senior Member
    Join Date
    Jan 2013
    Posts
    3,520

    Re: Need help Building some Speed Freak skill games

    Please see edit above I fixed it to work, or just add impulse from the state on event of the decrease power to the state off event of the increase power.

    Edit- I decided to make the video anyway....haha

    http://www.youtube.com/watch?v=KJrifpF6r-4

    Its processing, should be live in a few minutes. Hope this helps, like I said you can use curve data sources instead of the increase/decrease & interval triggers, but its a bit more tricky. This setup should get you started for now, and you can tweak as you need.
    Share this post

  5. #5
    Surrur's Avatar Trials Developer
    Join Date
    Jan 2013
    Posts
    29

    Re: Need help Building some Speed Freak skill games

    remember to add small force if you want to make it similiar.

    The bike has 250% power and small force pushing him. Thats how you can little bit control your flight in the air. The main reason is to get quickly back to the ground. Because you are much faster in the ground.

    The color inside the bike changes corresponing how much % is your stress level. 0-50% green, 50-75% yellow and 75-100 red.

    Every time i make some logic I always forget it after 1 day

    Remember to use a lot of custom collissions to make the track extra smooth. The bike glithces inside the ground pretty easily.
    Share this post

  6. #6
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: Need help Building some Speed Freak skill games

    cool vid jarrett88, you could simplify this by

    Variable Data Source(Interpolate,Linear,Steps 1)->Bike Power
    OnPress->Set Value Event(Set:0)->VDS
    OnRelease->Set Value Event(Set:100)->VDS

    would save quite a bit of coding.

    edit, the step is 1 or less if you use two input operator on 1/n to get it fractional.
    Share this post

  7. #7
    Jarr3tt88's Avatar Senior Member
    Join Date
    Jan 2013
    Posts
    3,520

    Re: Need help Building some Speed Freak skill games

    Originally Posted by dasraiser
    cool vid jarrett88, you could simplify this by

    Variable Data Source(Interpolate,Linear,Steps 1)->Bike Power
    OnPress->Set Value Event(Set:0)->VDS
    OnRelease->Set Value Event(Set:100)->VDS

    would save quite a bit of coding.

    edit, i think the steps would be 100? or 100-current power, will check this out.
    Thanks The way I set it up tho allows for different methods (equations) of decrease/increase of power. btw I never played the game so I'm not sure if thats what the OP was looking for exactly. In addition, theres an issues of holding the gas for too long then the rider flys backwards. I tried tying that datasorce to the rest of the #s in braking and reverse power but that broke the game.
    Share this post

  8. #8
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: Need help Building some Speed Freak skill games

    after a quick refresh of the skill game it looks like it

    1) disables the break
    2) has hidden temperature, when a certain threshold value is exceeded the engine needs to cool before the power grows again
    3) power never goes to 0, but is low enough to cause the bike to stall out on hill climbs
    Share this post

  9. #9

    Re: Need help Building some Speed Freak skill games

    Again Thanks to everyone, you naild the discription dasraiser of what Im wanting to do, hopefully start tonight, after I get the game running properly I would also like to do what Surround said about "The color inside the bike changes corresponing how much % is your stress level. 0-50% green, 50-75% yellow and 75-100 red." I will probaly need some help with that also. Thanks Thanks Thanks!
    Share this post

  10. #10
    Jarr3tt88's Avatar Senior Member
    Join Date
    Jan 2013
    Posts
    3,520

    Re: Need help Building some Speed Freak skill games

    Originally Posted by ronandsoni
    Again Thanks to everyone, you naild the discription dasraiser of what Im wanting to do, hopefully start tonight, after I get the game running properly I would also like to do what Surround said about "The color inside the bike changes corresponing how much % is your stress level. 0-50% green, 50-75% yellow and 75-100 red." I will probaly need some help with that also. Thanks Thanks Thanks!
    Just need 3 color events and some generic filters.

    green (on true) less equal 50
    yellow (on true) greater 50 (would need a tie into a state event to turn off when greater than 75)
    red (on true) greater 75
    Share this post