#Trying to find some good approaches to handling projectiles

6 messages · Page 1 of 1 (latest)

snow phoenix
#

I'm working on implementing projectiles for my third-person shooter and was wondering what the best approach(es) would be, as adding them directly to the shooter or weapon is not a good idea and I'm kind of lost.

languid furnace
snow phoenix
#

I was thinking that, but then I was wondering what would be the best way to attach it, as I don't know how many nodes deep the shooter might be, and going up the tree with get node is a bad idea anyway with how brittle it leaves things.

languid furnace
plain spruce
#

Not everyone agree with this approach, but you can use a dedicated node as projectile parent

dreamy escarp
#

I would just add it to the scene tree with get_tree().root.add_child(...).
Do you need to "retrieve" these bullets again? Wondering where the position of the bullets in the scene tree affect your use case (if it does).