-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code for FlxG.fade() fade in #41
Comments
How about using terminology similar to TweenLite, and just use |
I never really understood the |
Sorry, I meant TweenLite uses The way it works is, say you have an object positioned right where you want it when you create it. Something like this:
Now, if you want to add a fancy "disappear" effect for the dialog, you use this code:
Simple enough. However, if you want to create the same fancy effect to make the dialog appear on the stage, you could write your code like this:
However, if you utilize the power of
|
Thanks for the explanation and examples! I finally understood that :D I agree about adding It is better to move them all to another place, e.g. |
Already in our todo list. 😉 #142 (comment) |
Nice, thanks! :D |
Issue #190 by: KinoftheFlames
Just added an optional boolean paramater to FlxG.fade() that controls whether the fade is fading from transparent to a color or a color to transparent (I use a fade out for states I leave and a fade in for states entered, for a smooth look).
Here are the full pastes for the FlxG and FlxCamera files on pastebin, with just the changed snippets below. Files are from the latest dev.
FlxG: http://pastebin.com/Q5bWex2K
FlxCamera: http://pastebin.com/8tbY3v4K
FlxG:
FlxCamera:
The text was updated successfully, but these errors were encountered: