#hello there, how would i program this to be able to queue_free the "ammo" and not the camera

4 messages · Page 1 of 1 (latest)

fallen crystal
#

i should say im using a tutorial for this code

let me know if you need any other info!

cedar oracle
#

ammo.queue_free()

hollow fjord
#

You're not using the ammo anywhere to begin with..?

Calling queue_free() on any object in question should free it. Since you are calling queue_free() directly inside this class that extends camera, it makes sense that this object would free itself.

I think to better help, I would need to know what your intention is: Why is your camera object referencing the ammo? Does the ammo represent your remaining ammo, or a bullet/shot you just fired? What condition do you want to meet to free the ammo object?

fallen crystal