Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Sprite Movement Script Not Working
- FirestarMC1108
-
Scratcher
2 posts
Sprite Movement Script Not Working

How would I make this script only change “lane” by -1 one time per key press? I've tried using wait blocks but then I cant press it again.
Project Link: https://scratch.mit.edu/projects/766448046/
Last edited by FirestarMC1108 (April 30, 2023 15:50:21)
- 09878901234321
-
Scratcher
500+ posts
Sprite Movement Script Not Working
Put a
wait until <not <<key [up arrow v] pressed?> or <key [w v] pressed?>>>inside of the if statement.
when green flag clicked
forever
if <<key [up arrow v] pressed?> or <key [w v] pressed?>> then
change [lane v] by (-1)
wait until <not <<key [up arrow v] pressed?> or <key [w v] pressed?>>>
end
end
- FirestarMC1108
-
Scratcher
2 posts
Sprite Movement Script Not Working
Thanks wow I'm dumb
Last edited by FirestarMC1108 (May 15, 2023 14:36:32)
- Discussion Forums
- » Help with Scripts
-
» Sprite Movement Script Not Working