This repository has been archived on 2022-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
Tyra/scripts/PortailDeFin.gd

10 lines
284 B
GDScript3
Raw Normal View History

2021-04-07 21:07:47 +02:00
extends Area2D
func _ready():
pass
func _on_Portail_de_fin_body_entered(body):
2021-04-08 03:02:23 +02:00
if "Joueur" in body.name: # si la personne qui entre est un joueur
if get_tree().change_scene("res://scenes/Menu.tscn") != OK: # go au menu
print("Impossible de charger le jeu.") # gestion erreur