Enemy Behaviour

In addition to the small differences in functionality that we have seen in the previous components regarding the player, the Enemy Behaviour is the first new component that will add the AI to the enemy, as well as manage the entire behavior of the enemy, as shown in the following screenshot:

Let's go through the following table of properties:

Sprite Face Left

Because of the tool functionality, we have to check this property in case the enemy faces left on the image we are using to create the visual.

Movement

Speed

The speed at which the enemy will move.

Gravity

The gravity force that will be applied to the enemy. ...

Get Hands-On Game Development without Coding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.