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

#1 2012-02-28 18:28:43

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Help!!!!!

I need help! I need something that changes the size by another sprite's size. How do I do this?


Get ready for domination of:  tongue

Offline

 

#2 2012-02-28 18:43:05

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Help!!!!!

change size by (([size v] of [Other sprite v])/[5])

Last edited by RedRocker227 (2012-02-28 18:43:53)


Why

Offline

 

#3 2012-02-28 18:46:02

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Help!!!!!

Make a variable called "sprite 2 size". Then for the sprite who determines the size, do this:

when gf clicked
set [sprite 2 size v] to (size)
Then for the sprite which is changing size, do this:
when gf clicked
change size by (Sprite 2 size)
Then put whatever code you want afterwards.

Last edited by Mokat (2012-02-28 18:46:38)


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#4 2012-02-28 18:47:58

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Help!!!!!

Mokat wrote:

Make a variable called "sprite 2 size". Then for the sprite who determines the size, do this:

when gf clicked
set [sprite 2 size v] to (size)
Then for the sprite which is changing size, do this:
when gf clicked
change size by (Sprite 2 size)
Then put whatever code you want afterwards.

ok, thanks!


Get ready for domination of:  tongue

Offline

 

#5 2012-02-28 18:49:33

SOScratch
Scratcher
Registered: 2010-02-01
Posts: 100+

Re: Help!!!!!

Create a variable which is like Size or something.
Then go to to a sprite and do this script:

set [size v] to (size)
With this you can set the variable to the size of a single sprite.

Now go to another sprite.
Then create a script which looks something like this:
set size to (size) %

Last edited by SOScratch (2012-02-28 18:50:01)


-SOScratch
Scratch On!

Offline

 

Board footer