How do I Multiplayer Camera following different players?

0 favourites
  • 2 posts
From the Asset Store
Players follower. use it for anything which follows the player
  • My idea is to do a plataform coop where the camera follow differents players in a game with 10 players

    I have been testing different ways, i kinda made it but works half time, sometimes yes, sometimes no and im not so sure why.

    this is my basis

    I have an object "camera", that object is child of the "Player"

    every tick position of "camera" is (Player.X, Player.Y) and System set scroll X to camera.X

    this kinda work but i feel the game have some confusions with the code in general or maybe is where i added my code because usually follow only the Host but also sometimes works fine, i would like to see how other people do this maybe in a better way

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If your camera is a single object, you have potential issues with syncing in a multiplayer environment.

    Recommend you use the scroll to behavior directly on the player controlled objects, and enable and disable them as needed on the relevant peers.

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