Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » maze problems
- SniperOct24
- Scratcher
77 posts
maze problems
https://scratch.mit.edu/projects/989671621/
Basically im making it so that when the game starts, the locks covering 2,3,4,5,6,7,8,9, and 10 will show, and in the lock sprite i made a variable called locks needed, so if i completed 2 levels, i would set that to 8, cuz there is 10 lvls and i finished 2. But, i want it so, if locks needed=9 locks 2-10 show up. If locks needed=8, 3-10, ect
Idk how to do this efficiently PLS HELP
Basically im making it so that when the game starts, the locks covering 2,3,4,5,6,7,8,9, and 10 will show, and in the lock sprite i made a variable called locks needed, so if i completed 2 levels, i would set that to 8, cuz there is 10 lvls and i finished 2. But, i want it so, if locks needed=9 locks 2-10 show up. If locks needed=8, 3-10, ect
Idk how to do this efficiently PLS HELP
- kingKASEtheGREATalt
- Scratcher
100+ posts
maze problems
make the if statement in the lock clone loop run off of this:
the “10” in the equation is the number of levels in your game so change as needed
<<not <<(x position) < [-265]> or <(x position) > [265]>>> and <(((Locks Needed) * (-1)) + (10)) > (Lock Clone #)>>this checks if your existing condition and the inverted number of “Locks Needed” is over the id of the lock
the “10” in the equation is the number of levels in your game so change as needed
- SniperOct24
- Scratcher
77 posts
maze problems
this worked, but my the locks are sticking to the side of the screen
- Discussion Forums
- » Help with Scripts
- » maze problems