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

#1 2013-03-15 16:08:43

Elijah250
New Scratcher
Registered: 2013-03-15
Posts: 2

Arrow Keys

When i try to move my sprite with arrow keys it doesn't work i have watched dozens of
videos of putting the blocks in the right places to move your sprite with arrow keys.I do EXACTLY what the people in videos do but mine just doesn't seem to move?.
Although  when i play other peoples projects from the Scratch gallery the arrow keys work just fine.So is there any fix for this ? , if so please reply

Offline

 

#2 2013-03-15 16:27:37

djdolphin
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Arrow Keys

Try this: http://scratch.mit.edu/forums/viewtopic.php?id=89182. If this doesn't work, I don't know what will. Also, I think this would fit better in the Help With Scripts Forum.

Last edited by djdolphin (2013-03-15 16:29:06)

Offline

 

#3 2013-03-17 03:58:30

newnewfew
Scratcher
Registered: 2013-02-23
Posts: 68

Re: Arrow Keys

Do this:

[scratchblocks]
when gf clicked
forever
if <key [right arrow] pressed>
  point in direction [90]
  move (10) steps
end
if <key [left arrow] pressed>
  point in direction [-90]
  move (10) steps
end
if <key [up arrow] pressed>
  point in direction [0]
  move (10) steps
end
if <key [down arrow] pressed>
  point in direction [180]
  move (10) steps
end
end
[scratchblocks]

If this doesn't work then there must be something wrong with your system.


It's contest time!
http://scratch.mit.edu/projects/newnewfew/3218957

Offline

 

#4 2013-03-17 04:14:26

newnewfew
Scratcher
Registered: 2013-02-23
Posts: 68

Re: Arrow Keys

Do this:

when gf clicked
forever
 if <key [right arrow] pressed>
  point in direction [90]
  move (10) steps
 end
 if <key [left arrow] pressed>
  point in direction [-90]
  move (10) steps
 end
 if <key [up arrow] pressed>
  point in direction [0]
  move (10) steps
 end
 if <key [down arrow] pressed>
  point in direction [180]
  move (10) steps
 end
end
If this doesn't work then there must be something wrong with your system. Sorry about the last one.


It's contest time!
http://scratch.mit.edu/projects/newnewfew/3218957

Offline

 

#5 2013-03-17 07:01:47

Elijah250
New Scratcher
Registered: 2013-03-15
Posts: 2

Re: Arrow Keys

Thanks for all your time my project  is now working properly!.

Offline

 

Board footer