[ solved ]
I'm working with Hype on some microsite prototypes and one of the primary issues I'm having is Scene transitions. All of my scenes contain some enter and exit animations. This results in nice fluid transitions when you put a instant scene change at the last frame.
My issue is, there are a number of UI components on the stage that will take you to other scenes – clicking on them needs to play the 'out' animation, and on the last frame take you to the specified scene determined by what symbol you clicked on.
For instance my menu symbol onClick event should:
- set a 'global' variable such as
- get current active scene and play the out-timeline.
- at the last frame switch scenes to the value of '
Any help here would be greatly appreciated. I'd like to do this in a way that leverages the behaviors or actions panel if possible, so I'm not having to somehow hard-code in a bunch of scenes and timelines.
I've pretty much solved this, though it's not terribly elegant. I created a global variable 'SceneQueue', and created a new function for each possible scene with a single line in it setting the variable to a scene name. It works perfectly, just very tedious to have make a new JS file for each function. In the future it would be great if creating variables in scripts would allow you to set those properties in the editor. Unity has a great pattern of how they handle this.