Day 10 Update
Another video demo with today's work, watch it here.
The issue I was having with the attacks was that I need to make sure that damage would only be inflicted if the attack animation was playing. To prevent the enemy from hurting the player during the player's attack, I set a temporary invincibility during the animation as well, though I'm not sure if that's the proper approach for it.
The energy bar display was pretty much a copy of the same code used to make the health, but using the global energy attributes instead.
I also tried to create a behavior for enemies to drop gems when defeated, but the gem doesn't seem to "fly out" of the enemy and bounce like I would like it to. Here is my code for the drop:
I'm sure it's only because I don't fully understand how the "push" block works, like what the force number represents? I will also double-check the collisions on the gem itself to see if it matters.
Next Objectives:
- create sprites/images for:
- Myy's attacks
- Kii transforming into Myy
- Myy reverting back to Kii
- an item to restore health
- Implement Kii's tranformation to Myy when energy is maxed
- Implement Myy reverting back when energy is depleted
- (if time) create new behavior for climbable walls?