I made a collision script http://scratch.mit.edu/projects/ferret10/351708 for use with any sprite that uses variables. It requires no sensor sprites. However, sometimes you get stuck inside of a wall, and following the project notes makes it worse. Is there a way to prevent that from happening without extra sprites?
[blocks]<when green flag clicked>
<forever>
<if<touching color[ >
<set{ }to( (<{ }>( <*> )-1)[/blocks]
It looks something like above, but check the project for a clearer view.
Last edited by ferret10 (2008-12-22 15:11:05)
Offline