OZONE Asylum
Forums
Multimedia/Animation
Set transparency in Director
This page's ID:
11417
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Thank you very much! This is a great help :D I tested it and made some adaptions so that I could control the start of the blending phases and now the script looks like this: (and for the dir see [url=http://home.hetnet.nl/~karengroenen/test_flower.dir]here[/url]) property myCounter, myStaticLimit, myLimit, mySprite, myPause, myTeller on beginSprite me mySprite = sprite(me.spriteNum) mySprite.blend = 0 myCounter = 0 myPause = 0 myTeller = 0 myStaticLimit = 200 --// The ammount of frames for sprite x, Best to put this in a propertyDescriptionList handeler so you can set it form the behaviour property dialouge box. myLimit = myStaticLimit end on on exitFrame me -- put myCounter if myCounter < myLimit then myTeller = myTeller + 1 put myTeller if myTeller >= 50 then myPause = 0 myLimit = myStaticLimit myCounter = myCounter +1 --// Increase Opacity Counter end if else if myCounter >= myLimit then myPause = myPause + 1 put myPause if myPause >= 100 then myLimit = 1 --//Set the limit back to 1 (it's 1 because we're testing for '>=') to count down myCounter = myCounter - 1 --//Decrease Opacity Counter end if end if mySprite.blend = integer((myCounter.float/myStaticLimit.float)*100) --//Translate Frames Passed to Percentage for alpha value end on Now it works fine, good enough for my production I'd say :D :D So thanks
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »