Godot Version
4.latest
Question
I am trying to make this area 2D move twards the mouse when clicked.
I have used similar code in a different game and it worked there
Why is this happening and how can I fix it???
Thank you in advance
4.latest
I am trying to make this area 2D move twards the mouse when clicked.
A CharacterBody2D has property velocity
and function move_and_slide()
but Area2D does not, you will have to manipulate it’s position manually
position += transform.x * speed * delta * g.BottleDanger
Thank you very much!!!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.