Discuss Scratch

TheMatrix101
New to Scratch
2 posts

Help!!

Hey I am a new scratcher and I am making my first program, but can someone tell me what I can do to make my character move up and down.
iProductions
Scratcher
19 posts

Help!!

Welcome to Scratch, @TheMatrix101! Would you like your character, or “sprite,” to move up and down when you press the arrows? It's simple.

when green flag clicked //when the project starts
forever //do this over and over again

if <key [up arrow v] pressed?> then //if you're pressing the up arrow key
change y by (5) //change the sprite's up-down position by 5 "pixels"
end

if <key [down arrow v] pressed?> then //if you're pressing the down arrow key
change y by (-5) //change it by -5 pixels, making it go down instead
end
end

Hope this helps, and you have a great time on Scratch!

Powered by DjangoBB