Fix Fly Faster crash


For the second level of our game, we included some waps that are at the start of the level. Those wasps were able to shoot me and some of their “bullets” were able to touch the trigger of the fly faster. When that happened in the game, the game crashed.  

The solution was simple but I wanted to share this in case someone is passing throw this exact situation. The solution to this bug was to check if the overlapping actor was interacting with the fly faster power-up. If it was the player then I want the fly faster to work if it is not the player then I don’t want the fly faster power up to work. 

In this submission, I am adding the screenshot of the second level where the wasp is able to shoot to the fly faster and also the code on how I solve this. I hope this is useful for everyone who reads it.

Leave a comment

Log in with itch.io to leave a comment.