This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
Jessist/addons/godot-action/Core/GDActionNodeInstant.gd

28 lines
408 B
GDScript3
Raw Normal View History

2022-06-18 13:05:48 +02:00
class_name GDActionNodeInstant extends GDActionNode
func _init(action, key, node).(action, key, node):
pass
func get_class() -> String:
return "GDActionNodeInstant"
func _process(delta):
if not is_instance_valid(node):
finished()
return
current_time += delta * speed
if current_time <= delay:
return
set_process(false)
_start_action()
# Virtual function
func _start_action():
pass