#Turret (fixed)

20 messages · Page 1 of 1 (latest)

olive condor
#

Turret (still in need of assistance)

robust latch
#

what awai(get_tree()) do ?

olive condor
robust latch
#

try removing it, i suspect it waits for somthing that never came

vital rampart
#

it looks fine to me. maybe you forgot to add the player group to the player node?

olive condor
vital rampart
#

it should be is_colliding

#

does the godot editor not recognize valid methods? you might want to switch to a proper IDE like visual studio code to avoid issues like that in the future

#

oh wait, that's C#. not sure if gdscript works with visual studio code. hopefully?

#

nevermind. might just be a gdscript thing. ignore me.

olive condor
olive condor
#

Turret (fixed)

olive condor
#

Turret (still in need of help)

#

Once again I've run into a problem that I cannot solve.

#

Doesn't acknowledge that the bullet has the method "destroy" even though it clearly does.

magic lodge
#
  1. see if the player is actually receiving bodies by adding a print() right after the function
  2. is the method in a node that can have a body? like an area2d, rigidbody, etc
#

also if youre trying to get the bullet to delete itself when it touches the player, put body.destroy() in the _on_player_hitbox_body_entered(body) function

olive condor