Currently I have my player character set up to move exactly 32 pixles every time the arrow key is pressed. The problem is that I can't collide with any of the walls, static bodies, or anything else i am supposed to. I know my walls are collide-able because when using the "8-way movement" on the Godot Docs movement page, i can collide with my tiles just fine. Sadly using the speed var and Vector2() movement doesn't let me move exactly 32 pixels.
What I have for movement at the moment:
func get_input():
if Input.is_action_just_pressed('ui_right'):
position.x += 32
if Input.is_action_just_pressed('ui_left'):
position.x -= 32
if Input.is_action_just_pressed('ui_down'):
position.y += 32
if Input.is_action_just_pressed('ui_up'):
position.y -= 32
Now I figure this is kind of like teleportation, which might be why I can't run into walls, i have yet to figure out an alternative way of getting this kind of exact movement.
Please let me know your thoughts and ideas.
In the end I need my character to run into walls and move exactly one 'Square' every time my arrow key are pressed. Thank you all for your help.