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

#1 2012-10-03 09:23:26

bardins
Scratcher
Registered: 2009-12-01
Posts: 1

Maze Glitch

One of my students found a way to cross walls even when the "stop when touching" is set. If you press the left and up key simultaneously it will go diagonally and cross the color wall. Any fix to this or suggestions?

Offline

 

#2 2012-10-03 09:25:49

Gravitation
New Scratcher
Registered: 2012-09-26
Posts: 500+

Re: Maze Glitch

Can we see the project? Also, this belongs in Help with Scripts.  smile

Offline

 

#3 2012-10-03 20:17:52

destructo-serpent
Scratcher
Registered: 2012-07-25
Posts: 1000+

Re: Maze Glitch

when key [up arrow v] pressed
change y by []

when key [left arrow v] pressed
change x by []
will allow the sprite to move diagonally. To only allow it to move in one direction or the other, this will work better.
when gf clicked
forever
if <key [up arrow v] pressed?>
change y by []
end
if <key [left arrow v] pressed?>
change x by []

Offline

 

#4 2012-11-30 16:58:59

EPICPIKAGUY
Scratcher
Registered: 2011-05-17
Posts: 22

Re: Maze Glitch

when gf clicked
if <key {up} pressed>
  move
else
  move the other way.
end


file:///C:/Documents%20and%20Settings/Ethan/Desktop/798330_sm.gif

Offline

 

Board footer