Week 5: Particle Time
Powerup Particles & Trails
This week saw this addition of particles to indicate when a player has a powerup active. The player now has two trail renderers and two particle systems attached. These are all disabled by default and are then activated and deactivated through script whenever the corresponding powerup is active. A yellow trail appears when speed is activated and a blue one when jump is activated. Both particle systems use custom materials, the strength particle emits small up arrows and the mass particle emits small down arrow.
Instead of emitting constantly while active the health pack particle emits one time as a burst. It also features a custom material, which makes it emit small plus symbols.
Falling Platform
A new type of platform was also added this week. When the player comes in contact with the platform a timer start before the platform begins flashing. When the flashing finishes the platform will fall away, taking any player standing on it with it. After a short amount of time the platform will reappear and wait to be collided with. All the interactivity is done through script, using OnCollisionEnter2D to start the timer and a coroutine to do the warning flash when the coroutine ends the platform falls away. In the update function a check is done on the location of the platform to know when it falls away, when it does, a call is made to the PlatformManager script which starts a coroutine to wait before it spawns the new platform. When the new platform is spawned it cannot be collided with and instead fades into the scene and then the collider becomes active.
Retro Rumble
Throwback Mayhem!
Status | Prototype |
Author | Zack Pianta |
More posts
- User GuideMay 26, 2023
- DocumentationMay 26, 2023
- Week 4: Pounded!May 22, 2023
- Game TestingMay 16, 2023
- Week 3: Powered Up!May 16, 2023
- Week 2: More Stuff!Apr 28, 2023
- Player MovementApr 23, 2023
- Concept LogApr 13, 2023
Leave a comment
Log in with itch.io to leave a comment.