If you have a variable called "level", then "change level by 1" would do it.
What exactly do you want to have happen? That seems to be very game-dependent, so can't be handled by a generic script.
Offline
[blocks]
<forever>
<if><touching[ egde
<change{ level }by( 1
<end>
AND
<forever>
<if> <touching[ ball
<change{ amount of times sprite1 hit the ball }by( 1
<forever>
<wait until> <( <{ amount of times sprite1 hit the ball }> <=> 10 )>
<change{ level }by( 1
[/blocks]
something like that i think. i dont know if it even works, but you can try it.
Last edited by funkymonkey (2007-12-05 19:48:43)
Offline
funkymonkey,
your scripts will cause the levels to go shooting up as soon as the condition is met.
You probably need another wait in your forever loops
forever
wait until touching edge
change level by 1
wait until not touching edge
forever
wait until touching ball
change ball_touched by 1
wait until not touching ball
forever
wait until ball_touched > 9
change level by 1
set ball_touched to 0
Offline