This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-04-19 05:47:10

mrspotatohead
New Scratcher
Registered: 2013-04-19
Posts: 3

help with moving scripts?

ok so im kinda new at this but i am making a scratch project and i am trying to make a game where you have a few shapes and when you click on one of them you can use the arrow keys to move them around. i just need help with moving the shapes around. there are 4 shapes and i have no idea how to get them each individually to move around. please help  smile  thanks

Offline

 

#2 2013-04-19 07:16:47

Tohmis
Scratcher
Registered: 2013-02-18
Posts: 58

Re: help with moving scripts?

Try this

When [object] clicked
wait (0.2) secs
Repeat until <mouse down?>
        if <key [up arrow v] pressed?>
             change y by (2)
        end
        if <key [down arrow v] pressed?>
             change y by (-2)
        end
        if <key [right arrow v] pressed?>
             change x by (2)
        end
        if <key [lert arrow v] pressed?>
             change x by (-2)
        end


Check out my new game
http://scratch.mit.edu/static/projects/Tohmis/3300878_sm.png

Offline

 

Board footer