Posted by supercain
in Reset camera to 0 (original position) (Started by supercain September 30, 2020, 09:00:35 pm
Board: M.U.G.E.N Development Help
Board: M.U.G.E.N Development Help
It pretty much says: if camerapos x is -180 then move the helper 404 pixels to the right (or left depending on facing), else if camerapos x is 40 then add 270 pixels and so on. This makes the camera go back to camerapos x = 0.
#2 this method actually works you only need to run a few tests in order to get the sample values. In this case 40 pixels for a camerapos x = -180 and 270 pixels for 40.
beterhans, as I said. I want to move the camera back to its original position in the X axis. I need it like this because the stage is made in a way that it would look weird when certain states are triggered.