diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-11-15 13:43:01 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-11-15 13:43:01 +0100 |
| commit | f9f6ba5b3fd66f7b9a5b8b3bfe71b76e0e45ea09 (patch) | |
| tree | ecbbf86b660f65c06c8e67d488cfbc661089316a /zombie.gd | |
| parent | c911e1cc29b1a6782cb9c8429ad69fe5837650fc (diff) | |
| download | nj26-f9f6ba5b3fd66f7b9a5b8b3bfe71b76e0e45ea09.tar.gz | |
aofshiasfoihasfa
Diffstat (limited to 'zombie.gd')
| -rw-r--r-- | zombie.gd | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -98,7 +98,7 @@ func _physics_process(delta): if c.is_in_group("powerup"): powerup = c.get_type() $timer.start(10) - emit_signal("powerup", c) + emit_signal("powerup", c, self) $magnet_light.visible = false $explosion_light.visible = false @@ -162,6 +162,9 @@ func _process(delta): func set_rid(z): myrid = z +func get_rid(): + return myrid + func set_id(z): myid = z @@ -242,6 +245,7 @@ func run_powerup(boxes, zombies): var id = "p" + str(myrid) + "_" if Input.is_action_just_released(id + "powerup"): + $explosion.play() expired() for b in boxes: |
