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

#1 2011-01-25 14:43:01

joeboy755
New Scratcher
Registered: 2011-01-25
Posts: 5

Advaced question about sprite size's

how do i make it when my sprite is lets say 3% size changes something like background

Offline

 

#2 2011-01-25 14:57:10

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Advaced question about sprite size's

I don't understand your question, could you rephrase and clarify? I don't think this is an advanced question anyway, try posting in the "all about Scratch" section!  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#3 2011-01-25 15:49:46

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Advaced question about sprite size's

[If <(size) = (desired size)> Then]
[Next background]
[endIf]


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#4 2011-01-26 14:44:03

joeboy755
New Scratcher
Registered: 2011-01-25
Posts: 5

Re: Advaced question about sprite size's

like in my game i have it where i can shoot the gun and it makes my guy smaller and when it gets to a certain size something happens like a changed background

Offline

 

#5 2011-01-26 14:50:52

joeboy755
New Scratcher
Registered: 2011-01-25
Posts: 5

Re: Advaced question about sprite size's

i meant when i shoot he gets smaller but i cant get something to happen when he gets to a certain size

Offline

 

#6 2011-01-26 15:49:46

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Advaced question about sprite size's

Put this in the sprite that shrinks:
http://www.freeimagehosting.net/uploads/caddc1335f.gif
Then put this in the background:
http://www.freeimagehosting.net/uploads/64c358ee21.gif
If all goes well, that should work fine.

The other problem is that if the sprite is too small, it might not go below a certain size. Make sure the sprite can actually reach 3% - if not, you'll need to set it to something higher.

Last edited by hmnwilson (2011-01-26 15:50:54)


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#7 2011-01-27 14:43:50

joeboy755
New Scratcher
Registered: 2011-01-25
Posts: 5

Re: Advaced question about sprite size's

hmnwilson i cant get to what you u said?

Offline

 

#8 2011-01-27 18:54:26

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Advaced question about sprite size's

joeboy755 wrote:

hmnwilson i cant get to what you u said?

Well, basically, Scratch sets a limit to how much a sprite can shrink. The limit depends on how big the sprite is to begin with, and most average-sized sprites can't reach 3% (which is pretty small).

All I was saying is that you'll need to make sure the sprite can actually get that small. If it can't, you'll have to change 3% to something higher.

Does that make more sense?


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#9 2011-01-31 14:23:30

joeboy755
New Scratcher
Registered: 2011-01-25
Posts: 5

Re: Advaced question about sprite size's

it can go to 3% i jus cant get tht text thing u entered

Offline

 

#10 2011-01-31 15:43:16

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Advaced question about sprite size's

Remember that the loop hmwilson suggested will continually broadcast whenever size < 3. If you just want it to happen once when size = 3, try this:

Code:

When flag clicked:
  forever:
    wait until <size = 3>
    broadcast "next background"
    wait until <not <size = 3>>

http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

Board footer