Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a sprite not go through walls?
- nathan32561
-
Scratcher
1 post
How to make a sprite not go through walls?
No No No, this is how u do it with wall sensors on either sides of a sprite:Thankswhen green flag clicked
forever
set [LastX v] to [ (x position)]
set [LastY v] to [ (y position)]
if <touching [Wall v] ?> then
go to x: (LastX) y: (LastY)
end
end
You will of course have to have the proper movement of the Sprite inside the script swell, I think it works!
- mario
-
Scratcher
9 posts
How to make a sprite not go through walls?
when green flag clicked
pen up
pen up
set pen color to [#25f342]
change pen color by ()
change pen shade by ()
- rsymon-tcssd
-
Scratcher
1 post
How to make a sprite not go through walls?
when green flag clicked[/b]i know is suck
if <> then
<touching [ v] ?>
change y by ()
end
- mystifyer
-
Scratcher
100+ posts
How to make a sprite not go through walls?
Hi! This topic is from 2015, so please consider starting a new topic to prevent necroposting.
- Discussion Forums
- » Help with Scripts
-
» How to make a sprite not go through walls?






