I’ve been thinking about this a lot…
Really a lot
I tried many things with the help of many people, but my “enemy” didn’t move yet…
What’s the problem
Of course it’s my brain!
So I need your help
Please help me…
You are my last hope
Wha I want
the action of an enemy moving at constant coordinates every time (ex. 3 seconds)
and dont forget to start your timer again after the timeout or after it reaches it position
And just a side note: you dont need to do this:
@onready var enemy_object = $"."
func enemy_movement_control(delta : float):
enemy_object.global_position = ...
# it automatically uses the current object if you dont give a specific object:
func enemy_movement_control(delta : float):
global_position = ...