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.
Get Deil Warrior
Deil Warrior
| Status | In development |
| Author | Beshoy B |
| Genre | Adventure |
| Languages | English |
| Accessibility | Subtitles, Interactive tutorial |
More posts
- Dev Log 4/30May 02, 2025
- Dev Log 4/4May 02, 2025
- Making Animation Transition Part 1Apr 21, 2025
- Animation and Main Menu TransitionApr 21, 2025
- Week 3.21Apr 21, 2025
- Music in Main MenuApr 21, 2025
- MusicApr 21, 2025
- Devlog Map Design 3/12Mar 20, 2025
- Dev Log For Map Design 3/10/2025Mar 14, 2025