12345678910111213141516171819202122 |
- extends RigidBody2D
- # Declare member variables here. Examples:
- # var a = 2
- # var b = "text"
- 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()
- # Called every frame. 'delta' is the el
- # Called every frame. 'delta' is the elapsed time since the previous frame.
- #func _process(delta):
- # pass
|