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

#1 2012-05-04 06:39:23

SamWang
New Scratcher
Registered: 2012-04-15
Posts: 22

Fade In Style

How can I make a sprite fade in and in total taking a total of 0.5 seconds?

Offline

 

#2 2012-05-04 06:49:14

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Fade In Style

Getting a fade in to last a certain amount of time could be tricky... you could probably throw a ghost effect change block in a repeat() loop and play around with delays of fractions of a second and see if you can get roughly half a second. Be warned that if someone is running it on a slower computer, the timing will be off though.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#3 2012-05-04 07:50:01

SamWang
New Scratcher
Registered: 2012-04-15
Posts: 22

Re: Fade In Style

Oh, thanks! This was what I added:

when gf clicked
show
set [ghost] effect to (100)
repeat (15)
  wait (0.005) secs
  change [ghost] effect by (-7.5)
end

Offline

 

#4 2012-05-04 08:05:54

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Fade In Style

SamWang wrote:

Oh, thanks! This was what I added:

when gf clicked
show
set [ghost v] effect to (100)
repeat (15)
  wait (0.005) secs
  change [ghost v] effect by (-7.5)
end

Scratch Blocks fixed.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#5 2012-05-04 09:53:16

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Fade In Style

SamWang wrote:

Oh, thanks! This was what I added:

when gf clicked
show
set [ghost] effect to (100)
repeat (15)
  wait (0.005) secs
  change [ghost] effect by (-7.5)
end

No problem! Looks good.  big_smile


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer