Continuing on from last week I have created sprites for the enemy AI. I have added scripts that move the enemy around 3 waypoints. A death controller for the player, and a next level controller.
Here is the enemy AI, I like this sprite. However I am going to change the look of both the enemy and player sprites to look more top down.
Here is the code from moodle, for the waypoints on the enemy, and a GIF of what it does.
This is the temporary sprite for the level objective, hitting this sprite with the player sprite will load the next scene.
Here is the code that makes this work and a GIF showing exactly what it does
This code is exactly the same as the death controller, other than the Tag name. In death controller the tag name is ‘Enemy’ in this it is ‘Nextlvl’. Also, instead of reloading the scene, it loads the next one when hitting the object.