Something that has caused a few errors before for some projects I've worked on is using load
or preload
with a file path that has a different capitalization than the exact resource path (for example res://assets/image.png
instead of res://Assets/image.png
for example). This issue can lead to crashes but only on exported builds, which can make it difficult to debug.
Is it possible that when there is a bunch of enemies and objects on screen that one of them is calling load
or preload
only when there is a bunch at once? I don't think the load/preload issue is what is going on here based on the description of the bug, but it is one of the things I know can cause sudden crashes without any error logs or anything.