(SOLVED)Need help designing a scrolling camera for a 2D traditional fighting game

What’s up? Lately I’ve been making great strides in trying to make a simplistic fighting game which emulates the art style of a Gameboy Color game. Everything is going well, but there’s one thing that’s been giving me quite the headache. I can’t program a scrolling camera that moves only to the left and right (on the X axis), whenever the players are intersecting either border.

What I want to do is a camera similar to this obscure title from the late 90s: https://www.youtube.com/watch?v=HjR3s67uEsc&t=130s. Basically, I’d like to do a camera that keeps the same Y borders and resolution, but pans to the right or left whenever both players move in that direction, but one is touching the border.

I have tried the FollowObjectsWithCamera extension, but it also zooms the camera back, which is not ideal. My game has a very tiny resolution, so it just muddles the quality of the sprites.

For reference, I’ve uploaded the command I’m working on, but I’ve only been able to figure out what conditions I think would trigger the camera’s movement. As for the action…am dumb.

A quick and dirty solution is to disable zoom into the extension

I am so trying that. Talk to you soon!

Oh wow you’re really onto something here. The zoom’s completely gone, and I’ve fiddled with the settings further:

Now it’s centered exactly how I want it to. But a problem still remains: If one of the characters goes too far in one direction, the other one goes off-screen in the other direction. It works perfectly when both of them are moving, but I need to come up with something to prevent the camera from panning unless they’re both moving.

You make it so the camera only moves when the players are moving with the is moving events

1 Like

It can’t be that simple. No way

It is that simple.

SOLVED!

1 Like

Wheel that is good I’m glad I could help😂

1 Like