Best way to transition between scenes
In my game a dude gets to the portal and I want to bring up an actor that says "Success, tap to continue" that covers the entire screen. What is the best way to do this? Right now I am doing:
Dude collides with portal > LevelComplete = true;
if LevelComplete = true > changeAttribute SuccessScreen.Position (offscreen non-scrollable layer) to CurrentScene.CameraOriginX (and Y). Relative to scene.
This works but it is in the top left corner and doesn't cover the whole screen, suggestions? Thanks!
Dude collides with portal > LevelComplete = true;
if LevelComplete = true > changeAttribute SuccessScreen.Position (offscreen non-scrollable layer) to CurrentScene.CameraOriginX (and Y). Relative to scene.
This works but it is in the top left corner and doesn't cover the whole screen, suggestions? Thanks!
Comments
Use the spawn actor attribute and set the coordinates x = 240 y = 160 (if on landscape mode). That will place your "success, tap to continue" in the middle of the screen.
And inside the "success, tap to continue" actor put a rule when actor is pressed change scene