Why is my area 2D not moving?

Godot Version



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

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
1 Like

Thank you very much!!! :smiley: