Transition effects in changing States

134 views
Skip to first unread message

Nuno Nunes

unread,
Aug 11, 2015, 8:54:03 AM8/11/15
to HaxeFlixel
Hey guys, I know this is a stupid question , but Idk how to set a transition between states like a moving camera from one state to another one , I think I did it in the past but i can't remember how I did it -_-


SruloArt

unread,
Aug 11, 2015, 12:13:47 PM8/11/15
to HaxeFlixel
* You can make your game twice as wide (or tall, or both, or thrice or whatever, all based on the number of screens you're supposed to have) and then just move your camera to the new location. Of course with the proper active/visible = false when they aren't supposed to be on screen.

* You can use screen grab to capture your state's window.

* You can extend the transitions in the flixel-addons repo if you're using the dev branch.

* You can also try experimenting with a subState and / or a FlxSpriteGroup (which has x/y variables).

* I guess HaxeFlixel should have an easier way to do that...
Reply all
Reply to author
Forward
0 new messages