Discuss Scratch

MMMMilk
Scratcher
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/
deck26
Scratcher
1000+ posts

level + random number = time

Not clear what you're asking.
Dezach
Scratcher
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.

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
Scratcher
10 posts

level + random number = time

thanks
MMMMilk
Scratcher
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

Powered by DjangoBB