I’m making a small space game, where ships are able to fire missiles.
The game works perfectly fine as I want it, except for one very weird issue.
After I open the editor, the FIRST time I preview the game and try to fire a missile, the game is stuck for about 5 seconds. Nothing happens, the game is frozen.
Then the missile is launched and the game goes on normally.
If I try to preview the game again, the game works perfectly normal, and the issue doesn’t show up again.
If I close the editor and re-open it, I have again the same issue.
I tried to add the missile object into the level, in case it’s an asset loading issue. No change. I added both the specific missile fired and its “master missile” parent object class. No change.
I try to log these events in the Session Frontend, but I only see “CPU Stall, Wait for Event” for a few seconds. I could not find any other clue of what instruction or process is causing this issue.
Anyone has any clue of what is happening?
Also random recommendations on where to look for clues are appreciated!