1 parent
f33b604253
commit
a5ce3103f4
30 files changed
+1832
-17
No files matched your search
@@ -1,17 +1,15 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
pass
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
func on_contact(body: Node2D) -> void:
|
||||
if body==%Player2D:
|
||||
print("SLASH KILL")
|
||||
%Player2D.on_death()
|
||||
%Player2D/Jetpack/DeathSound.play()
|
||||
%Player2D.on_death(false,%Player2D.position)
|
||||
print(body)
|
||||
|
||||
Reference in new issue
Block a user