Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Animating opacity using lingo

Status
Not open for further replies.

sheefy

Technical User
Oct 1, 2005
1
0
0
AU
Hey guys,

I'm new to director and was hoping if someone could help me with a problem I'm having. I need to make a sprite fade in and fade out using lingo (no keyframes)- so that i can later use a variable that will increase and decrease it's speed when ever needed.

The coded animation will be similar to a pulse.

I've looked around the internet for information on how to do this but I can't even find what type of code controls the sprite's opacity.

Any help would be extremely appreciated.

Cheers.
 
Use a handler for this:


sprite(YOUR SPRITE NUMBER).blend = A NUMBER BETWEEN 0-100

I hope it works, or at least give you some idea.

Bye.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top