The most generic way I can imagine it being done is like:
-
You have all your scene contents on a group (Group1). You replicate this group on top of itself as a complete duplication of it (Group2). Then you start loading the next scene as a new group below this previous 2 (Group0).
-
Now you apply a bitmap mask to Group1 that hides the right part of it from the center of the screen. Then do the exact opposite to Group2, using a bitmap mask to hide its left part.
-
Move Group1 to the left till it leaves the screen, Move Group2 to the right till it leaves the screen.
-
Remove Both Group1 and Group2.
When Group1 and Group2 move out of the way, you will start seeing Group0 which is the next scene.
Having a replication of Group1 onto Group2 shouldn’t be a worry in terms of texture memory as its elements will be read from the same place in memory. Although you got 2 distinct elements (but same) in the screen they will only be instanced once in memory.
Manuel [import]uid: 61899 topic_id: 23736 reply_id: 95464[/import]