Power Up Programming

This week the power up mechanic programming started with adding in the power up sprites previously designed. Created a new Power Up script and store different power ups within a public enum. There are currently 4 types: speed, defense, strength, and none. These types are referenced in the player controller script that makes none type the default type . A method is called every frame to check if the player currently has a power up or not. If given power up is true and the player has collided with the power up prefab, then the effect will apply to the player for x amount of seconds. Else, the player returns to its original condition. This was implemented for the Alaskan Tea power up that boosts the players speed for 5 seconds. There were some bumps in this process like making sure all the scripts tied in well and accidentally using a 3D Unity method instead of a 2D Unity method which costed some time trying to spot and fix.
Deil Warrior
More posts
- Making Animation Transition Part 14 days ago
- Animation and Main Menu Transition4 days ago
- Week 3.214 days ago
- Music in Main Menu4 days ago
- Music4 days ago
- Devlog Map Design 3/1236 days ago
- Dev Log For Map Design 3/10/202542 days ago