This week created multiple functions in my code. One is an enemy which will follow the player around from a distance and chase them whatever direction they go. The other function is a damage function placed on the arrow which when it collides with the enemies they are killed. Took a while to figure out AI path finding and I had to look up quite a few videos on how to do it even remotely simple ones were kind of hard to figure out. As always it needs more polishing but its nice to get the rough stuff out so it will all look polished at the end. I have been mostly focusing on code so a lot of the items are place holders which is why they look like cylinders.
Image 1: First time spawning in the enemies not obvious from a photo but they follow the player around at a fast speed.
Image 2: The code for creating the enemies to follow the player.
Image 3: The code allows the player to hit the enemies and make them become destroyed
 |
| 1 |
 |
| 2 |
 |
| 3 |
Comments
Post a Comment