The simplest way is probably to add a Timer
to your scene. Set its wait_time
to whatever delay you want. You can either start the timer manually from your code or set its autostart
property to true to start it automatically. Finally, connect the timer's timeout
signal to your script. In the timeout
callback, do whatever is necessary to start your attack (set a var, call a function, ...)