You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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...