Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Node2D
- var x = 5
- var charOne
- signal game_over
- func _ready():
- self.charOne = CharOne.new()
- self.connect("game_over",self.charOne,"Death")
- if x <10:
- character_died()
- func character_died():
- emit_signal("game_over")
- class CharOne extends Object:
- func Death():
- print("CharOne is dead")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement