tomato-dungeon

a game made in 1 day
git clone git://git.vgx.fr/tomato-dungeon
Log | Files | Refs | README

cinematique.gd (398B)


      1 extends Node2D
      2 
      3 
      4 var step = 1
      5 
      6 
      7 # Called when the node enters the scene tree for the first time.
      8 func _ready():
      9 	pass # Replace with function body.
     10 
     11 func avance():
     12 		step += 1
     13 		match step:
     14 			2:
     15 				$Cine2.visible = true
     16 			3:
     17 				$Cine3.visible = true
     18 			4:
     19 				$Cine4.visible = true
     20 			_:
     21 				get_tree().change_scene("res://titre.tscn")
     22 	
     23 
     24 func _input(event):
     25 	if event.is_pressed():
     26 		avance()