Discuss Scratch

nathan32561
Scratcher
1 post

How to make a sprite not go through walls?

Eclipsed6 wrote:

BobaFett-66 wrote:

No No No, this is how u do it with wall sensors on either sides of a sprite:

when 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!
Thanks
hammer282
New Scratcher
1 post

How to make a sprite not go through walls?

no you all wtogn
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]
if <> then
<touching [ v] ?>
change y by ()
end
i know is suck
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.
jnguy259
Scratcher
1 post

How to make a sprite not go through walls?

They don't work

Powered by DjangoBB