0 Favourites

How do I create a zoomable camera for multiplayer?

  • I tried taking a stab at this a while ago because I couldn't do it so I deleted the events for it.

    My game is 800x600, and the player is a 50x50 sprite fixated in the middle. But if someone presses start on a second controller. Player 2 will pop in.

    But then I want the camera to switch modes so it doesn't just follow Player 1 anymore. So if both sprites are within a 400 pixel radius of each other it will be like single player but if both players are more than 400 pixels away from each other then it will zoom out to compensate. I want the game to rely on teamwork when using splitscreen so if you get too far away it'll be hard to see your character and enemy / enemy bullets. But when I try to zoom it zooms my HUD out too (I have my HUD on a separate layer with a parallax of 0.) and even the smallest change zooms the camera really far out.

    Any suggestions?

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
224 49,511
ThePhotons's avatar
Unread hot topic
167 39,774
lucasgc1's avatar
Unread hot topic
190 41,418
juantar's avatar