summaryrefslogtreecommitdiff
path: root/demos/3d/platformer
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-10-17 10:43:17 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-10-17 10:43:17 -0300
commitb411f8f732db71c5e259a19a3bbd7723d9ab6d54 (patch)
treed715635a9fb5fb24458a0c5c93a0f530e8d230db /demos/3d/platformer
parent40f8b1d2eac4d8fe4846989c9765e9e267e9f896 (diff)
parentf0119c2e3c0ddb19cef1fdf6cfebb6697dabd14d (diff)
Merge pull request #2402 from ERIIX/master
Properly free enemies after death in 3d platformer demo.
Diffstat (limited to 'demos/3d/platformer')
-rw-r--r--demos/3d/platformer/enemy.gd3
-rw-r--r--demos/3d/platformer/enemy.scnbin37784 -> 38594 bytes
2 files changed, 2 insertions, 1 deletions
diff --git a/demos/3d/platformer/enemy.gd b/demos/3d/platformer/enemy.gd
index cbbb2fe725..9b2e95a96d 100644
--- a/demos/3d/platformer/enemy.gd
+++ b/demos/3d/platformer/enemy.gd
@@ -91,4 +91,5 @@ func _ready():
# Initalization here
pass
-
+func _die():
+ queue_free()
diff --git a/demos/3d/platformer/enemy.scn b/demos/3d/platformer/enemy.scn
index 06d725061d..083582a85a 100644
--- a/demos/3d/platformer/enemy.scn
+++ b/demos/3d/platformer/enemy.scn
Binary files differ