This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-12-22 15:07:18

ferret10
Scratcher
Registered: 2008-04-21
Posts: 58

No sensor sprite collision script error

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)


A must-see animation about the Scratch cat! http://scratch.mit.edu/projects/ferret10/364723 ¡uʍopǝpısdn ǝdʎʇ uɐɔ ı

Offline

 

Board footer