Jump to content
Search Community

Alternative to tweening alpha to fade out?

BladePoint test
Moderator Tag

Recommended Posts

In my game's title screen, I've got some display objects in the background which are all covered by a large partially transparent curtain that fills the screen. Then on top of that I have a large, detailed piece of vector artwork for my game's title. When the game starts, I fade out the title by tweening its alpha from 1 to 0 over 2 seconds or so. The problem is this gets rather choppy on low end systems, I imagine because I'm tweening a transparency over a transparency. I've tried converting my title into a bitmap, and that helps somewhat, but it's still not very smooth on a Pentium 4.

 

Are there any good, fast alternatives to the fading out effect I'm looking for? Like maybe a dissolve effect where every other pixel disappears in a checkerboard pattern, or something like that.

Link to comment
Share on other sites

Here is a suggestion - not sure if it would work or not - but maybe worth a shot.

 

You could try putting a mask over the vector art - then just alpha tween the mask.

Probably a lot less CPU intensive to alpha a simple box vs vector art.

I have not done it in a while - but I think when you alpha a mask - you have to set cacheAsBitmap flag to true for the MC as well as the MaskMC.

 

Good luck.

-R

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...