Untitled
unknown
plain_text
4 years ago
889 B
7
Indexable
class_name Enemigo extends Area2D ####################################### # CONSTANTES ####################################### const VEL_NORMAL: float = 400.0 const VEL_EN_ALGODON: float = VEL_NORMAL / 2 ####################################### # PROPIEDADES ####################################### var vel_actual: float = VEL_NORMAL onready var vaquero: Vaquero = get_parent().get_node( "Vaquero" ) as Vaquero ####################################### # FUNCIONES ####################################### func _Ready(): pass func _Process( delta ): look_at( get_global_mouse_position() ) #position += transform.x * vel_actual * delta pass ####################################### # SIGNALS ####################################### func _on_Enemigo_area_entered(area): if area is Algodon: pass pass # Replace with function body.
Editor is loading...