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

#1 2011-03-01 00:11:35

chelleanne
New Scratcher
Registered: 2011-02-24
Posts: 7

Changing the sizing with variables?

Hi,

I am currently working on a project where I need to be able to change the sizing of the square based on what the user wants. For example, I will ask, "What size did you want the square to be?" In which they would state either small, medium, or large. Afterwards I need the square to actually be that size. I understand i'm suppose to use variables but i'm not sure how to use it correctly. Could anyone please explain this to me? Thanks!

Offline

 

#2 2011-03-01 00:50:45

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: Changing the sizing with variables?

if the square is a sprite, then use
[blocks]<set size to( <{ variable  }> )%>[/blocks], where 'variable' is the size of the square.

Last edited by floppy_gunk (2011-03-01 00:51:31)


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#3 2011-03-01 03:10:47

chelleanne
New Scratcher
Registered: 2011-02-24
Posts: 7

Re: Changing the sizing with variables?

No the square isn't a sprite the square is basically being drawn by a pencil and i'm being asked to what size did I or the user want the square to be. But thank you  smile

Offline

 

Board footer