Fixed crate trap with groups
This commit is contained in:
1 parent
4e2bdbae01
commit
f4f7a8513f
20 files changed
+80
-119
No files matched your search
+2
-4
@@ -4,7 +4,5 @@ extends Area2D
|
||||
signal areatrigger(effect, Object)
|
||||
|
||||
func _on_body_entered(body):
|
||||
print("detected a body")
|
||||
# Need to fix this part and see why it's not acknowledging the static body
|
||||
# if body.get_collider() != StaticBody2D:
|
||||
# areatrigger.emit(effect, body)
|
||||
if body.is_in_group("sprite"):
|
||||
areatrigger.emit(effect, body)
|
||||
Reference in new issue
Block a user