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

#1 2007-05-18 18:41:26

kbayegan
Scratcher
Registered: 2007-05-18
Posts: 1

Dynamically shrink or grow a spite?

Is there a way to dynamically shrink or grow the size of a sprite to create a 3D motion effect?

Offline

 

#2 2007-05-18 18:45:09

paulmedwal
Scratcher
Registered: 2007-03-09
Posts: 100+

Re: Dynamically shrink or grow a spite?

Use the "change size by" block in the looks category, or the "set size to" block.

Paulmedwal


clutter.scratch.mit.edu Visit the Clutter site to create multi-scene stories and multi-level games with Scratch.

Offline

 

#3 2007-05-20 03:36:28

mungojelly
Scratcher
Registered: 2007-05-19
Posts: 35

Re: Dynamically shrink or grow a spite?

I was just learning to do this earlier today.  What I did was Set Size To ( Size * 0.9 ).. there's that block of what the size is already, so you can set the size relative to what it is at the moment. 

To make a 3D zooming effect I would say something like

Forever If ( Size > 20 )     <-- here i'd put the eventual size to shrink to,
    Set Size To ( Size - 1 ) <-- and then this would shrink it until it got there

<3

Offline

 

#4 2007-05-20 11:50:35

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Dynamically shrink or grow a spite?

You don't want a "forever-if" there, you want a "repeat-until Size < 21"

The repeat-until ends when the condition is met, but the forever-if keeps grinding away.

Offline

 

#5 2009-08-04 10:04:31

ZeldaRecreation84
Scratcher
Registered: 2009-08-04
Posts: 10

Re: Dynamically shrink or grow a spite?

http://scratch.mit.edu/projects/ZeldaRecreation84/633885 It has some examples of that to simulate 3d!

Offline

 

Board footer