In the introductory post for this blog, I mentioned the fact that there's a long-term game project in the works to go along with our new dev streams. Well, in t...
Here is how to do a simple transition using the fade behavior. There is a transition object on layer 'transitions' in each layout.
+ System: On start of layout
-> Functions: Call Transition (State: "In")
| Local number Fade_Time = 1.5
* On function 'Transition'
* Parameter 'State' (String)
----+ System: State = "In"
-----> Transition: Fade: set fade-out time to Fade_Time
-----> Transition: Fade: start fade
----+ System: State = "Out"
-----> System: Create object Transition on layer "Transitions" at (0, 0)
-----> Transition: Set size to (ViewportWidth("Transitions"), ViewportHeight("Transitions"))
-----> Transition: Fade: set fade-in time to Fade_Time
+ Transition: On Fade fade-out finished
-> Transition: Destroy
+ Transition: On Fade fade-in finished
-> System: Signal "LayoutChange"