i want the camera to zoom between two objects, they are seperate sprites. trying to add co-op to my game. the camera is a seperate object aswell.
howtoconstructdemos.com/auto-zoom-and-scroll-the-screen-to-fit-multiple-characters
thank you, i hope this will help me with camera.
alright so i tried it but it did not work. i have two seperate sprites. all it did was focus on player 1.
Develop games in your browser. Powerful, performant & highly capable.
cdn.discordapp.com/attachments/1117542347199221922/1228885630675714259/convert.gif this is what happens.
these are what objects i plan to use.
Can you post a picture of your events?
i essentially just copied from this, howtoconstructdemos.com/auto-zoom-and-scroll-the-screen-to-fit-multiple-characters
Maybe you made an error when trying to implement it into your game? A screenshot of you events exactly could help diagnose the issue.
is this correct?
You can add both objects to a family.
Or just modify event #4:
set minX to min(player1.x, player2.x)
set minY to min(player1.y, player2.y)
etc.
Obviously you won't need the "for each" loop since you only have one instance of each object.
dop2000 i havent thought of that, i will try that and see if that works.
it worked.... but now i have another problem.
cdn.discordapp.com/attachments/1117542347199221922/1228894018419560569/convert.gif
when i go too far they BOTH go off screen.
You probably need to make a bigger layout. Or change the expressions.
i wasn't able fix it, but thank you for the help.