Fixing Issues with the Powerups
- Abbie Hipwell
- Jun 15, 2022
- 1 min read
A week before deadline I came across a series of issues regarding the powerups; two of the powerups (the coconut rain and the freeze) could be spammed by the player an unlimited number of times, and the freeze powerup had stopped working.
These issues were hard to work on as I had not coded these blueprints, so had to read through them and understand what they did before fixing the issues.
The fix for the freeze was easy as the 'delay' node hadn't been plugged into the 'slow down' nodes - I simply just plugged this back in to correct this.

I changed the powerup pickup to be automatic, rather than toggling it - this was how the 'split ball powerup' worked. I did this by simply removing some code from the original version and cutting this back to the code below:
Once the powerup has been picked up, the random integer will be used to select one of the powerups - this will then activate whichever powerup is active. The split ball powerup is stored separately to these as it relies on the shooting mechanic.

Comentários