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

#1 2012-07-17 15:21:33

notaloser
Scratcher
Registered: 2011-12-06
Posts: 100+

changing shadow size with distance to?

so yeah i want to change the size of sprite 2 (shadow) with the distance to block, so that when my character jumps the shadow gets smaller and when its back to its position the shadow returns to normal.

So the problem im getting is the its doing the opposite of what i want, i used this:

when gf clicked
forever
 set size to (distance to <sprite 1>)
end
So is there any way of getting it to do the opposite, (decrease size when its away?)

Last edited by notaloser (2012-07-17 15:23:09)


http://gifs.gifbin.com/1238409599_nom_nom.gifhttp://cdn3.lolzsquad.com/wp-content/uploads/2012/10/Come-here-I-want-to-tell-you-something.-.gif

Offline

 

#2 2012-07-17 15:24:06

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: changing shadow size with distance to?

set size to ((100) -(distance to [sprite1 v]))%


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

Board footer