what is the script to make something colide-able? like, the person you control walks into something and can't move around it?
Offline
MachoWalrus wrote:
what is the script to make something colide-able? like, the person you control walks into something and can't move around it?
you have to make boudtries i could make a tutorial for you if you want
Offline
Yeah, a tutorial would be nice.
Offline
The most simple way is color sensing:
[forever if <key [right] pressed?>]
[][change x by (5)]
[][if <touching color [ ]?>
[][][change x by (-5)]
[][end if]
[end forever if]
That's for the right arrow key - modify it for the other keys.
You could also use a sprite as the boundary:
[forever if <key [left] pressed?>]
[][change x by (-5)]
[][if <touching [Boundary]?>]
[][][change x by (5)]
[][end if]
[end forever if]
That was for the left arrow key - modify it for the others.
Any questions?
Offline