This repository has been archived on 2023-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
Boups/Scenes/Button_Node2D.gd
2023-02-25 01:04:08 +01:00

21 lines
392 B
GDScript
Executable file

extends Button
onready var villain = $"../Villain/AnimatedSprite"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _on_Button_pressed():
match villain.get_frame():
2:
print("non")
_:
print("oui")