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

#1 2010-06-19 04:19:31

Scratch412
Scratcher
Registered: 2008-07-30
Posts: 41

{Set Size()} script

Hi, I am currently working on a handwriting recognition project, one thing that i found that is weird is that when I set the size of a sprite that is a dot (1pixel * 1pixel) to 5000% witch mathematically should be then 50pixel * 50pixel, but instead it is 23pixel * 23 pixel. One would like to ask if the <set size to(  )%> block is setting size of the perimeter or the area.

Thanks.


http://www.txttext.com/file-cabinet/TxttextLogoPNG.png

Offline

 

#2 2010-06-19 07:05:32

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: {Set Size()} script

It sets the size (or the area) of the area, but it generally won't set itself to be too high - there's a limit to how large that block goes.

Offline

 

#3 2010-06-19 07:16:11

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: {Set Size()} script

You have made a mistake... 50 × 50 ≠ 5000.

So if you set the size of a dot to 5000% its side should be 7.071, but it's 26 in Scratch...
If you set the size of a dot to 2500% its side should be 5, but it's 13 in Scratch ...

Last edited by mathematics (2010-06-19 07:19:05)

Offline

 

Board footer