About 'Enemy HitPoints'!

In this video (objectives)…

  1. Decrease enemy hitpoints when enemy is hit.
  2. Destroy enemy when hitpoints are below 1.

After watching (learning outcomes)…

Implement enemy hitpoint and kill enemies.

(Unique Video Reference: 23_RR_CU2)

We would love to know…

  • What you found good about this lecture?
  • What we could do better?

Remember that you can reply to this topic, or create a new topic. The easiest way to create a new topic is to follow the link in Resources. That way the topic will…

  • Be in the correct forum (for the course).
  • Be in the right sub-forum (for the section)
  • Have the correct lecture tag.

Enjoy your stay in our thriving community!

The check after hits have been processed (already reducing the hitpoints based on the current bullet) is looking to see if the remaining hitpoints are <= 1, effectively killing it whilst it still has ‘1 health’ remaining.

Probably means to be hitpoints < 1 or hitpoints <= 0, in case it is questioned.

Thanks, we’ll correct this before the end of the section.

Privacy & Terms