How can I make a local multiplayer?

0 favourites
  • 4 posts
From the Asset Store
Ludo Local Multiplayer board game can be played by 2 to 4 players
  • How can I make a local multiplayer? (two players in a PC)

    This is the first time I post a post and I hope you understand, sorry for the bad translations.

    I want to make a camera that moves according to the characters, I already have a code that moves the characters but I need to know if you extended a way to make a dynamic camera.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The "Scroll to" Behavior is going to handle this for you. Put the behavior on every object you want the camera to follow and it will automatically find a middle point if it can. If objects are too far away it will still place the center of the camera in between them, but you'd need to manually add in some camera zoom features to fit the characters.

  • Hi, take a look at my script;

    NOTES:

    First you need to figure out positions of players, and get an extreme left, and extreme right position of players.

    Same with top/down.

    Left say, we have 4 players. Maybe PLAYER 3 is on the most left, that is OUR min_x value.

    Values -100 / +100 are the safe margins, so the characters are not exactly at the edge of viewport (you can remove it or change it to any other value)

    Last condition is setting a scale. As you can see, my layout is 640x360 px.

    "oczko" is an invisible eye/camera. It has the "Scroll to" behaviour.

    Don't hasitate to ask, if it's not clear enought.

    Cheers!

  • haopl wow !, Thanks has worked for me but I need to know how I can set a maximum zoom point so that the camera stops expanding.

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