Say you want to make it so that a free moving sprite cant move through a wall. How do I do this?
if <touching [sprite V]?>{ change y by (-1) }
script variables ((old rot)) @> set [old rot V] to (direction) point towards [sprite V] warp{ repeat until <([ray length V] to [sprite V]) > [0] >{ move (-1) steps //replace for non circle }} point in direction (old rot)
Shouldn't it be script variables?
Please elaborate...
replace the move steps for a non circle
Replace it with what?
depends
What's with the
warp{ repeat until <([ray length V] to [sprite V]) \> (0)> { move (-1) steps } }
? Why not do move ((-1) - ([ray length V] to [sprite V])) steps
(Sorry, just noticed the date this was posted.)
it doesn't work like that
could you post a screenshot of it not working?
nevermind