Hi all. I'm making my first game and i like to rotate camera around player by Y mouse movement. I need positive value to one side and negative to other side but i cannot find how. So far, i tried this :
func _input(event):
if event is InputEventMouseMotion:
angle = angle + (event.speed.y/80)
printerr(angle)
I'm getting correct positive values but not negative even if is mouse moving to opposite side. How i can get correct values(both positive and negative) of mouse horizontal movement ?
Thanks.
-Garrom
Note : In fact, it is not my first game in total but it is my first game using GoDot engine.I'm trying to learn GoDot same way how i learned Unity long time ago so I'm making my own Roll a Ball using GoDot