Keeping two players on the screen

0 favourites
  • 2 posts
From the Asset Store
Players follower. use it for anything which follows the player
  • So I have a nice game coming along, it's a platformer with local multi-player. The controls and events are all set up and it runs perfectly. Currently I have it set to scroll to both players, and when one player leaves the screen, they are teleported to the other player. It works, but I'd rather have them be unable to leave the screen at all. Like in the New Super Mario games.

    I want them to just get stuck at the edge of the screen rather than be able to leave it. Any suggestions? Otherwise I might just go with Player 2 having no camera influence.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You could use the distance() function to evaluate how far the two players are from each other and then limit their ability to move in a direction which would increase that distance.

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