Would it make sense to encode holes data in the texture, as a data array substitute, and send this one to the shader? Just thinking out loud. Otherwise - nice work!
You could try something like this:
In the Bullet scene:
- add VisibilityNotifier node
- create signal and name it something like "destroyed"
- listen to VisibilityNotifier's signal "screen_exited" and in the handler function call "queue_free" and emit "destroyed"
In the scene that spawns bullets
- move "b" variable outside of the shoot function and initialize value as null (lets rename it to "bullet")
- in shoot function only spawn bullet on the condition "if not bullet:"
- when bullet is spawned assign it to "bullet" variable and subscribe to it's "destroyed" signal
- in the "destroyed" handler function then set bullet = null
Would it make sense to encode holes data in the texture, as a data array substitute, and send this one to the shader? Just thinking out loud. Otherwise - nice work!
the self improvement rabbit hole without taking an actual action is something many fall into. turns out it learned from them
You could try something like this:
In the Bullet scene:
- add VisibilityNotifier node
- create signal and name it something like "destroyed"
- listen to VisibilityNotifier's signal "screen_exited" and in the handler function call "queue_free" and emit "destroyed"
In the scene that spawns bullets
- move "b" variable outside of the shoot function and initialize value as null (lets rename it to "bullet")
- in shoot function only spawn bullet on the condition "if not bullet:"
- when bullet is spawned assign it to "bullet" variable and subscribe to it's "destroyed" signal
- in the "destroyed" handler function then set bullet = null
Thank you! Great project and extremely helpful.
This is so impressive and well crafted; even more so with the added editor! I wish you great success and hope for a Switch port. Chapeau bas!