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

#1 2009-03-31 18:55:26

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Math question in scratch

When a mouse pointer is close to the sprite I want the sprite to increase in size but I can't figure out a script for that.
I use (distance to sprite) and all that but i can't find a solution.
Can someone help me with this?

Offline

 

#2 2009-03-31 19:16:32

m44
Scratcher
Registered: 2008-02-04
Posts: 500+

Re: Math question in scratch

<set size to( (( (( <distance to[ sprite  <*>-1 )) <+> maximum size )) )%>

Last edited by m44 (2009-03-31 19:20:29)


METAL SLUG is out!!! (here) and M44's BESTShttp://img708.imageshack.us/img708/6673/msbanner.jpg

Offline

 

Board footer