Second player camera bug

Hello, how are you? As you can see, the cameras work perfectly fine for each player, except when I try to zoom in or out on player 2 (Wisha), it feels as if the camera suddenly zooms out to infinity.
I’ve been dealing with this for about two months now, and I can’t find a way to fix it. Does anyone know where I might be making the mistake?

Video where I show the error:

Images of the events:






Here’s a test project. If anyone manages to fix it, please send me the project with the resolved issue, and I’ll apply it to my main project. If it works, I’ll pay $50. https://drive.google.com/file/d/1FMg51tP89vwrmcP8iwoyMeIG7Ut_g6Xm/view?usp=sharing

Thankyou :slightly_smiling_face:

I am looking at your actions
And i think you should try out extension called copy camera settings

If I understand correctly, this seems to be something to simplify the use of layers, but I don’t understand how I could solve my problem.

You have copies of same actions which have same values just different layers specified

I have very bad dyslexia so i am not so good at spotting stuff
BUT MAYBE you made somewhere simple mistake
And one action does not match rest?

SO copy camera settings would allow you to have one action for one layer
And now you use copy camera settings to translate it to other layers
Removing chance you could make some mistake

I know this sounds ultra dumb but that would be 1st thing i personally would try due my dyslexia
Eliminating chance i made some stupid basic mistake
And then you have less to check

Thanks :slight_smile: but I don’t understand how to use that extension, and I’ve been checking these events for more than 2 months, I don’t think it’s due to an error of that type, there is clearly some error but I don’t know which one, but I suppose it has to do with the use of a second camera.

I wrote tutorial how to save stuff
Yesterday on discord another user did not understand anything from it
So i recreated it in my test project to demonstrate to him it works and it is easy

HOWEVER my system was saving all objects but loading only 2
I could not understand it wtf
After over a HOUR turns out in one action to change variable i choose SET instead of ADD and that was the issue

Wanna my most honest tip i could possibly give you?
DO NOT TRUST YOURSLE do not believe even for moment you did something right
Always assume you messed and not that something else is causing issue

Of course it is not always your fault but in 1st place always assume you did mistake

SO my idea for fixing your issue is eliminate stuff that can cause problem

Looking at this

FOR EXAMPLE you have base layer
You add action change camera zoom on base layer to 2
Center camera on player on layer base layer
AND now under it you copy paste action from Copy Camera Settings extension as many times as many layers you have
And in each copy you select different layer to copy to it settings

AND NOW only thing you ever need to change is very 1st two actions you made to base layer
Cause all other layers copy settings of this layer

On other hand you could simply set variables for your values and instead of values in actions you would just put there variables
And now you control all layers by changing values of variables

For example you create var called CamZoom
You add action to change zoom on base layer to CamZom
Change zoom on Player layer to CamZoom
Change zoom on Enemy layer to CamZoom

And so go on and now all you need to do is set CamZoom to WHATEVER to it apply to all layers
And you don’t need to have multiple copies of same actions to control your layers
Since your CONTROL PANEL is in one place which is event will all your variables

I have no better idea
So if you will not come up with anything i say at least try copy camera settings or variable approach and who knows maybe it will fix something

Thanks :slight_smile: I’ll try it.
The first player’s camera zoom works perfectly, and the second player’s settings are the same, except the variables have different names so they don’t conflict. It’s weird. I’ve been checking it daily for over two months and I’m giving up, so I’m asking for help. I’d even pay for it.
Anyway, I’ll try what you told me to do.

Sooo
Another thing you should do is put there text object i mean in your scene
And print to it variables you use for 1st and 2nd player
To check them

AGAIN DO NOT TRUST YOURSELF
Trust what you see and not what you assume you did right