In my game I have a “bullet” object, and for some reason, in the windows build of the game (haven’t tested other builds), it doesn’t spawn properly. I can tell that part of the init() function has been run and that the object has been spawned, since it spawns something using a factory attached to the object, but something must be deleting it and not running the final() code, since it should be getting deleted.
I can’t tell if the issue is just bad code or if I’m accidentally using a debug feature without realising, because I don’t get this issue in the defold editor build
Here’s the game code
Shotgun Speed-Limit (Editor).zip (2.2 MB)
Here’s the bundled version
Shotgun Speed-Limit.zip (3.0 MB)
Could I get some help?