Spawning the player in Different Spots...

This forum is currently in read-only mode.
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • As the title says, I'm trying to spawn the player in different spots. What I mean by this is that the player starts out at the beginning of the level normally, but in my game, there are secret areas. Once they leave the secret area, I would like them to spawn near the end of the level instead of at the beginning. Think Mario and the pipelines.

    But so far, I'm completely baffled on how to do this. Because spawning the character at the beginning of the level is done by placing the sprite there, but I can't think of any way to change that specifically for when the player leaves the secret area that actually works.

    Any idea on how to do this?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Have two variables, one for X position and one for Y. When the player enters the secret area add the XY position you want the player to end up at to those values. When the player leaves the area, place him using those variables.

  • That sounds very plausible, and it shouldn't interfere with the other events like my attempts, so I'll give that a shot now.

    Thanks for the response! :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)