So, I have a question. It’s for my game, and I’ve tried MANY MANY solutions, and none of them seem to work. The thing is, everytime i move, the camera rotates with it, and the player can rotate 360 degrees, so every once in a while the camera just does a weird spinny thing.
the event is this:
I’m guessing that when the angle goes from positives to negatives it goes from 180 to -180 instead of just switching so it makes this weird spin
But I dont really know…
I have tried setting it to the absolute value, but it just makes the camera rotate EXTREMELY slow and not work in negative values. Any help? Are there any formulas that can make it work? Remember its a TWEEN so it might act differently PS: the -90 is just is so it camera faces up and not sideways. I hope it doesn’t mess up the cam because it IS important.
If you using the rotating every frame, you can use angle instead of tween, then camera will rotate fast and without bugs(you can made like Player.Angle()-5, wait 0.5 secs Player.Angle()-5… etc):
Thanks! This solves one problem, but it makes another problem in the camera. You see, in my game you jump from a circle to circle, and the player is always rotating towards the center of the circle they are on. So, when I jump to another circle, the camera just snaps to the angle, which is why I’m using a tween event.