Journal Entry 4


Date: 01. 04. 2025

Activity:

Unit 3: Power-up

- Object representing a power-up item

- Component for picking the item up

- OnTriggerEnter2D and OnTriggerExit2D

- Using Tags to detect the player

- Applying an effect and destroying the item

- Effect as a UnityEvent

- Creating reusable effects on the player

- Assigning the event in the Inspector

- Temporary effect with Coroutine

- Parameter for effect duration

- Repeated use

- Disabling the collider component

- Enabling the item again after a while

Unit 4: Animation of the power-up item

- Item flickering

- Spinning animation

- Position animation

- Curves mode

- State machine switching between animations

- Adding transitions between animation states

- Animator Controller parameters

- Transition conditions and parameters

- Setting Animator parameters from script

- Color change in animations

- Creating flickering animation

- Animation Events for playing sound


Invested hours:

- Unit 3: 1.5 hours

- Unit 4: 2 hours


Outcome:

- Functional, animated power-up item that:

- Spawns in the scene

- Applies a temporary effect

- Becomes disabled and re-enabled over time

- Visually indicates its state

- Build uploaded to itch.io as .zip

Files

hw_scripting_3_and_4.zip Play in browser
Apr 01, 2025

Get Project T

Leave a comment

Log in with itch.io to leave a comment.