Quest: Wack-A-Mole Quest
Challenge: Vanishing Enemy
Feel free to share your solutions, ideas and creations below. If you get stuck, you can find some ideas here for completing this challenge.
Quest: Wack-A-Mole Quest
Challenge: Vanishing Enemy
Feel free to share your solutions, ideas and creations below. If you get stuck, you can find some ideas here for completing this challenge.
I figured this one out by rotating the camera under the map to realize the enemy was colliding with the walls. I set the “Player” tag for the Hero Game Object and then modified the Exploder.cs.
if (other.tag.Equals("Player"))
{
print("Aww, you got me ");
Destroy(gameObject);
}
While Uncommon’s code is a good addition to the Exploder class, I simply moved the “vanishing” block’s X position a little toward the center of the board. The block’s animation was causing it to reappear under the Arena Cube, pushing it into oblivion.
After looking at the Hierarchy and seeing which enemy was disappearing early. I looked at the animation movement to learn it was moving over into the wall space triggering a collision with that instead of the player. I adjusted the X value to be within the bounds of the play area.