Pages: 1
Topic closed
Wow it's so embarrassing that I need help with something as simple as this ._.
I wanna have it so that to start with, obstacles don't appear very frequently, but after a while they increase in frequency. I know how to do it with loads of "if" blocks, but I want it just one block. For example, to make the chance decrease, it's;
wait (round ((timer)/[5])) secsHow would I go about making the opposite of this without using multiple "if" blocks?
Last edited by RedRocker227 (2012-03-09 18:25:35)
Offline
The loads of if blocks might be the only way
Offline
schusteralex2 wrote:
The loads of if blocks might be the only way
Oh ;-;
Offline
when gf clicked set [chance v] to (100) //insert any value repeat until <(chance) = (10)> change [chance v] by (-1) wait (pick a random (0.75) to (2)) secs end when gf clicked forever if <(pick a random (1) to (chance)) = (1)> do stuffwhy doesn't the pick a random block work of the forums?????
Last edited by joefarebrother (2012-03-09 13:57:55)
Offline
What about this?
when gf clicked set [a v] to (5) // This changes the amount of time it starts with for the waiting. forever wait ((round(a)) - ((round(timer)) / (5))) secs do stuff... change [a v] by (0.4) // This changes how much the amount of time changes. endIt works! I tested it. At some point, it will stop getting to be a smaller amount of time, although by that time you'll probably have a game over.
Last edited by PullJosh (2012-03-09 16:46:47)
Offline
You could just make the wait time proportional to the reciprocal of the timer....
wait ((50) / (timer)) secs
Offline
Paddle2See wrote:
You could just make the wait time proportional to the reciprocal of the timer....
wait ((50) / (timer)) secs
But that's no fun. It won't make you look smart.
Offline
Paddle2See wrote:
You could just make the wait time proportional to the reciprocal of the timer....
wait ((50) / (timer)) secs
Wow. I knew it was gonna be really simple, but I didn't realise it was THAT simple xD I feel like an idiot now
Close this pwease ^.^
Offline
Closed by request of the topic owner.
Offline
Topic closed
Pages: 1