Enemies that attack!
Its getting close to the end of the school year and that means my computer course is coming to a end. There are seven days left and I intend on using each one to add something new to the game I've been working on since the course began. Today I fixed myself on adding "Enemy states" to the npc enemies that I already created. This is basically just giving the enemies in-game properties that the player can interact with and the enemy can interact with the player. These properties will finally give our enemies the ability to attack our player. I'm choosing to begin with the enemy states and then work my way to giving the player stats of his own. Giving the enemies stats is a simple process of writing a few new scripts that outline how the enemy sprite will attack, how much damage it will do, how much health it has and other variables.
No comments:
Post a Comment