Part 3 & 4
Project Scripting » Devlog
- Date: 19/05/2025
- Activity: Part 3 & 4 of the scripting homework, implementing a power-up item with animations
- Time: 6 Hours
- Notes: After taking a quick look at the homework, I initially estimated it would take about 4 hours to complete, but I was wrong (I am not doing too well at predicting time yet, but it is a skill I will hopefully build) . The implementation turned out to be more complex than expected, especially the animation system. In Part 3, creating the power-up functionality was relatively straightforward – setting up the trigger collider, creating the PlayerEffects script, and using UnityEvents to connect them. However, Part 4 was much more challenging. I struggled with several aspects of the animation system, particularly with setting up keyframes for the floating motion and properly configuring the color animations. The most frustrating issue was with the flickering animation not triggering during gameplay, despite looking fine in the preview. After much troubleshooting, I discovered the problem was a competing transition in my Animator state machine – I had transitions from PowerUpIdle to both PowerUpFlicker and PowerUpSpin with the same condition, causing the flickering animation to be bypassed entirely. This was definitely the most challenging homework so far, but nevertheless very fun and interesting. I've gained a new appreciation for the amount of time and effort that goes into seemingly simple animations like making a key bob up and down and flicker. I guess thats not something I never really thought about before when playing games.
- Outcome: Successfully implemented both Part 3 and Part 4 of the homework. The power-up now functions correctly – when Ellen collects it, she grows in size temporarily. The power-up itself has proper visual feedback: it spins and floats when active, becomes semi-transparent when collected, and flickers when becoming available again. The animation transitions work properly according to my testing!
Files
Archive.zip Play in browser
69 days ago
Project Scripting
Status | Released |
Author | Olliewakeford |
Genre | Platformer |
More posts
- Part 1 & 2 Journal Entry84 days ago
Leave a comment
Log in with itch.io to leave a comment.