This should be on all about scratch... but to answer your question,try
Set Variable Timer to 100
Forever If Playing A level? =1
change Variable Timer by -1
wait 0.1 seconds
As for the level changing?
When variable level=3
Change costume to level 3
Offline
I prefer to use broadcasts to change levels, but variables will also do the trick
Example: When I receive "New Level"
next costume, etc.
Last edited by Telemachus (2010-07-08 10:12:38)
Offline
hollie1 wrote:
could someone let me know how to add a timer to a game and stop when reaches certain time.
Try something like this:
The reason the script uses the number 49.9 and the > sign is because the timer counts quickly and in tenths; if the script used the number 50 and the = sign it wouldn't sense it.
hollie1 wrote:
Also i have created 3 levels to my game hope do i move from level 1 to 2 ect?
There are lots of ways to advance in a levels... here's an example, supposing that to advance a sprite had to touch a certain color:
Offline