Slime Enemy

 Author: Josiah Jones

    Problem I had this week wasn't a big one, really just an annoyance that I was having trouble with. While making my slime enemy that splits up into smaller slime the Collider wouldn't move with the attack animation so either it wouldn't actually hit the player or it would cause double the damage to the player. I didn't really understand why because it shouldn't have been able to overlap with the player twice when turned on so I don't know how it did double damage.

    The solution I came up with for this problem was I made it so my hit collider blocked the player so whenever I went and attacked one collider would overlap the other would push the player back. This solved my problem for double hitting but caused another for the smaller slimes. When the smaller slimes would hit the player or the player run over the smaller slimes the player was actually able to run on top of the slime, so I just changed the hit collider position and moved it up some so it wouldn't have this problem.


Big Slime collision layer(Blocking Pawn(Player)):


    

Small Slime collision layer: 


Small Slime hit collider Location:



Comments

Popular posts from this blog

Procedural Generation - Room NavMesh Spawning

Powerups and Wall clipping