Corona-cation (Day 6)

Git Commit: cd7dff7

"Fixed enemy health bar,  Added statue enemy"

Fixed enemy health bar:

    Just fixed this small issue I noticed when I was testing the new statue enemy. The issue being that the health bars above enemies heads would appear and disappear at the wrong time. I intended for the health bar to appear when the player is looking more or less directly at the enemy. What actually happened was the health bar would appear from the far left of the screen to the correct spot on the right. the problem was that I was just using the wrong conversion node from screen to world. I found the correct node from this thread.

 Added statue enemy:

    From the design doc I was told to make an enemy that: "These do not move on patrols they stay in one location and wait till attack come within range". Additionally during a meeting I was told that they would be stationary on a pedestal until they jump on and off to attack the player. This made me learn about AI jumping. 
    I followed this video to make the original smart nav links. Doing this allowed me to specify things like how long the jump should last, which I thought would have been taken care of by the engine but apparently not. Other than that the jumping was relatively simple to do. 
    The rest of the AI was pretty similar to the basic melee enemy that we already had. Just that when the player is lost, the statue will return to the pedital and rotate to its original rotation. The last thing that I did was to generalize the attack task to be usable on any enemy. This simplified things a lot and I am quite happy with it. 

Comments

Popular posts from this blog

Polishing the Foundation

Progress Update #13

A New Chapter