Wind mechanic
I want there to be wind that affects the player (by pushing them) at a random time.
I've tried a few things and can't really get it. Any suggestions?
-
Not sure if this is the best solution but it’s what came to mind! Sorry if some terminology is wrong I don’t have the game in front of me.
The wind is generated by a Force Applier. Made fancy with Painting effects and sound.
For the randomness, you could have a timer set to run for e.g. 10 seconds, then auto resets itself (so it’s always running). When the timer hits 10, it triggers a randomizer, where e.g. 1 out of 3 times it triggers the wind, and the other two times it does nothing. So in this example there’s a 33% chance the wind blows every 10 seconds. -
Okay I'll try that, thanks!
-
I have tried something in a different context that might help,
A timer for force, this would act as strength , it would be modulated to increase the force,
A second timer could then change current time on first timer, acting as modulator,
This should allow force to change at different speeds between 2 force amounts,
The second timer can be any oscillating signal, thru signal manipulator to condition it.
The previous suggestion would help you for some randomness .
This may or not work for you, i do this elsewhere than dreams. -
Or signal generator instead of timers.
請登入寫評論。