Wednesday 21 March 2012

I think you lost an arm there....

Working on combat, I have a lot of other projects on the go now so it's not going as quickly as I wanted. The zombie that appears is randomly selected however it's only currently from a list of three. A function is then called inside the enemy class that assigns all of it's stats like attack strengths, hp and lvl.
I was able to get to so that the player can scroll through the weapons they currently have, select which they want then attack. It plays the corasponding animation and the selected weapon appears in their hand. The 'blood level' in the zombies heart also goes down depending on what percent of it's maximum hp it's currently at. After the melee and gun attacks have been made it plays a function in the enemy class that; using data like it's different attack strengths, it's current hp, the players current hp and a bit of random math; chooses an attack and plays that animation for either it's ranged, melee or healing. I'll update with a video later :D

No comments:

Post a Comment