How to invert controls?

In my game the camera switchs which means the controls get all sorts of messed up is their any way to invert controls to make the system not confusing for the play? ie the camera rotates 90* and the controls still work the same as the would any other direction. Any thoughts or ideas, if you need I can provide as many screen shots to any of my coding thanks in advanced.

Multiply the axis float by -1 to invert it.

Im confused where do i find this and where do i plug it in?

The setup may be different depending on your design. Share us your screenshot if you still don’t get it.


This is the code running for my 2d character when camera switching

Now, I’m confused, aren’t we talking about camera rotation? But why are you setting Sprite and Camera Boom as the world rotation? Isn’t 2d games have the static value of camera distance from the image?

My game character is a 2d character but is set in a 3d world I changed the rotation of the camera boom and chararcter sprite in order to see the diffrent angle of the level

If it’s okay with you, can we use discord? I might need direct answer from you. You can DM me your discord ID.

I ended up making the controls work after 3 days of trying stuff.
with my pervious code to switch the camera and sprite you must add a variable (named like isinverted?) with your code to move left and right use a branch (make sure conditon is isinverted?), plug eveything in the branch them make the original movment out of the false to make it move normally, then at the end of the camera switching code make to add a set isinverted? to true, then on your actually 2d side scroller make sure you addmovment input to the reverse of the false movment. (same steps can be taken for up and down movement) If the screen shots dont make sense just dm and ill explain/provide more screenshot (also working on multiple switching angles so your character can switch to any postion and the controls wont be inverted)


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.