--CHA0S--
loading
You could break it down a bit further to detect if it was an x collision or a y collision like thisOk so if you want something to collide with an object preventing it from moving past it, im assuming you want it to collide with a form of immovable wall, just make it so every time the sprite moves it checks to see if it is touching the object, and if so then you move with the opposite, example: I just need more examples of Collision with:define Block namechange x by (x velocity)I hope this helps!
change y by (y velocity)
if <touching [wall sprite v] ?> then
change x by ((-1) * (x velocity))
change y by ((-1) * (y velocity))
end
change x by (x velocity)
change y by (y velocity)
if <touching [wall sprite v] ?> then
change x by ((-1) * (x velocity))
if <touching [wall sprite v] ?> then
change x by (x velocity)
change y by ((-1) * (y velocity))
if <touching [wall sprite v] ?> then
change x by ((-1) * (x velocity))
else
stop [this script v]
else
stop [this script v]
end