Topic was automatically imported from the old Question2Answer platform.
Asked By
GameTester2
Hi,
I’m trying create overhead game with player looking at mouse point and I have problem with sideways moving.I cannot use ** velocity.x -= 1** because player is rotating position to mouse point… Currently i did forward and backward moving feature:
if Input.is_action_pressed('ui_down'):
velocity = (-mouse_pos + position).normalized() * 5000
if Input.is_action_pressed('ui_up'):
velocity = (mouse_pos - position).normalized() * 10000
PS: I just wanna make game with movement like in CS 2d.