EnemyManager #1


First Enemy on screen!

Today I had the goal of putting a small enemy on the map and starting to make him go back and forth, nothing complex. To do this I created a rudimentary EnemyManager responsible for making the enemy move.

Once this step was finished, I set the PhysicsLayer of the TileSet to manipulate each tile individually with the collision shape I wanted. So I set some borders to prevent the sprites from passing through the area.

The next step was to make sure that the Player and Enemy don’t pass through each other but that the sprites don’t get in each other’s way either.

To obtain this result it is necessary to set both a CollisionLayer and a CollisionMask for each of the components (Player and Enemy) and set them appropriately in the properties.

Leave a comment

Log in with itch.io to leave a comment.