I think the must frustrating part is that it would work and then it suddenly would stop working. I've noticed a pattern, after one full run through the game then going back into it after being defeated is when this bug begins to occur. Although there aren't any variables or events that prevent this line from running, besides if the object were not to spawn. I had a similar issue earlier but did a workaround rather than figuring it out, where a particle effect would have a timer on creation which would help trigger the boss. This new bug though cannot be worked around just as the other could have. I'm more than likely going to come back to this in the next day but thank you for your assistance and suggestions. It narrowed down my scope of what this issue could be, from possibly an engine issue to being just my code. I'll need to thoroughly go through the code to hopefully see a solution. Yet if there is an way you or others can help, I'll leave the code available here for a bit. Here is what is supposed to happen when running.
- Beehives spawn in on the map and have a timer made to spawn bees
- On this timer, the beehives make a specified bee according to their instance variable
- This then prompts an "On Created" event to play out which will apply a power-up drop if available, find a specified path to a random position, add to a total count of enemies, and apply a cosmetic if necessary.
As I have mentioned, this project is years old and was more of my breaking point into using Construct 3, which means some bits are old and messy while others are a lot more modern on my knowledge over the few years. If someone can find a fix before me I'd greatly appreciate it, although it may take some time since, well, there is a LOT of code.
https://drive.google.com/file/d/1XG6xq-thjkRZlxMk4sHlxvpWDMeD_vWs/view?usp=sharing