Best way to transition between scenes

floydianspiralfloydianspiral Member, PRO Posts: 308
edited November -1 in Working with GS (Mac)
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!

Comments

  • steve86steve86 Member Posts: 806
    when level complete = true.

    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
  • floydianspiralfloydianspiral Member, PRO Posts: 308
    Yes thanks man. It actually didn't work because my scene is bigger than the original camera size but 240 + OffsetX and 160+OffsetY works perfect.
Sign In or Register to comment.