Basic Enemy Coding


Learned how to code an enemy so that it dies on contact (or in our case, one second after contact) with the player. 

We also learned how to create enemy spawners to create new enemies at specific locations when the conditions are met. The final version has this happen once all enemies are killed, the function and dictating when new enemies spawn is controlled by the enemy spawner manager, which also has the last feature we created, spawning a key after all enemies has been destroyed, at the location of the last enemy killed. With these pieces, and using the key logic from before, I created a simple parkour/find the enemies map that requires the player to find all 8 enemies and complete the parkour to be able to open the door to victory at the top of the map.


Files

Coding1-2_WIN.zip 492 MB
Mar 11, 2025

Get Coding1