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
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
Thanks I will get started on that.
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.
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.
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.
ThanksOriginally Posted by dasraiserThe 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.
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
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.Originally Posted by ronandsoni
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