123456789101112131415161718192021222324 |
- extends RigidBody2D
- # Declare member variables here. Examples:
- # var a = 2
- # var b = "text"
- # Called when the node enters the scene tree for the first time.
- func _ready():
- connect("body_entered",self,"on_entered")
- pass # Replace with function body.
- func on_entered(body):
- print("contact with", body, body.name)
- if body.name == 'ground':
- self.queue_free()
- print("OFFENDER WON")
- get_tree().quit()
- # Called every frame. 'delta' is the elapsed time since the previous frame.
- #func _process(delta):
- # pass
|