I have isometric camera design, but want to rotate on click. I already have code that rotates on click, but for some reason the code for rotation is wrong.
video showcase of the glitch
I have isometric camera design, but want to rotate on click. I already have code that rotates on click, but for some reason the code for rotation is wrong.
video showcase of the glitch
Hey @BizzareWitch! Welcome to the forums!
All we can really do here is suggest way to test it, then you come back with more information that we may be able to use to further guide you!
So firstly, we need to find out what is causing some numbers involved to go negative. I see you have some actions for your player, so first try just clicking around for about a minute.
If that doesn’t cause it, try clicking around with ONLY some dashing. Note any glitching.
Do this with each action the player can do, and try to find out which action is interacting incorrectly. If it’s not one, try with combinations. But don’t try at random. Be very methodical.
The point is to isolate the problem, because if we don’t know what the problem is, we can’t fix it!
Hope that helps, get back to us soon!
After testing, it happens regardless of movement or dashing, and only happens in a couple of areas in the game, and there’s no special code in those areas.
Are you able to cause it to happen every time?
I wonder if it has to do with world position!
Try to bring back some coordinates for the player where this glitch happens, then also some where doesn’t happen for comparison!
So funny thing, was working on it with the team I’m on, and they found that I had the collision responses on the invisible walls near those areas set to block all instead of pawn only! So It was blocking the mouse click inputs.
That’s so funny. Sorry to have wasted anyone’s time! Is there a way I can close the thread?