how do i make a sprite not go on part of my stage?
Offline
but wont that just hide the sprite? i just want a border around an area so the sprite stops at the area.
Offline
Oh, do you want to make it bounce off the edge-
Try if on edge bounce block
Offline
the area i dont want my sprite is in the middle of the screen and the user has control of the sprite but i dont want the user to go in the middle.
Offline
try this. dark green is the wall color
forever if <key [up arrow v] pressed?> change y by (10) if <touching color [#1C7A3E]?> change y by (-10) end end if <key [down arrow v] pressed?> change y by (-10) if <touching color [#1C7A3E]?> change y by (10) end end if <key [right arrow v] pressed?> change x by (10) if <touching color [#1C7A3E]?> change x by (-10) end end if <key [left arrow v] pressed?> change x by (-10) if <touching color [#1C7A3E]?> change x by (10) end end end
Offline