Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » level + random number = time
- MMMMilk
-
10 posts
level + random number = time
Hi I need help for a project and I want it to sense what level it is and turn that into time + random number here's the link https://scratch-mit-edu.ezproxyberklee.flo.org/projects/476624125/
- Dezach
-
100+ posts
level + random number = time
To know the level you can use a variable and each time a level is completed you add one.
Or if you use a costume for each level:
Not sure what you want for your time thing, but:
when green flag clicked
set [level v] to [1]
when I receive [Level ended v]
change [level v] by (1)
Or if you use a costume for each level:
when green flag clicked
switch costume to [First level v]
forever
set [level v] to (costume #)
end
Not sure what you want for your time thing, but:
set [time v] to ((level) + (pick random (0) to (10)))
Last edited by Dezach (Jan. 21, 2021 19:09:42)
- MMMMilk
-
10 posts
level + random number = time
yeah I was trying to make a infinite level game and needed a time thing to lower the time as the level going higher
- Discussion Forums
- » Help with Scripts
-
» level + random number = time