Using Arrays to Add Eunctionalities to our Enemies
Update to my Unreal Project for my coding 1 class. This week we've added arrays and enemies to our projects.
For enemies, we added an enemy, enemy spawner, and an enemy spawn locator.
The enemy spawner gets all of the enemies in the scene, and puts them into an array. From there, we add enemies to the scene if there are none, and we check if there are any enemies in the scene using a loop running every 2 seconds.
In the enemy blueprint, we switch the enemy material and enemy name using built in arrays. These are assigned randomly to the enemy using the SHUFFLE node.
Code that uses arrays to switch enemy material and names randomly: https://blueprintue.com/blueprint/qu4mnbx_/
Files
Get Coding 1 Spring 2024 Project
Coding 1 Spring 2024 Project
A project to show my progress in learning C++ and Blueprinting in Unreal Engine
Status | Released |
Author | Dameron Cook |
More posts
- Final Devlog!May 01, 2024
- Adding Class Functionality and WidgetsApr 17, 2024
- Turning Booleans and Integers into Doors and KeysFeb 08, 2024
Leave a comment
Log in with itch.io to leave a comment.