hey i just want to know if there is a better way to script enemy AI in a fighting type of game
what ive been doing the whole time is have the enemy follow the character and based on a random number it would attack, and when ever the _root.enemy._y>_root.hero._y it would initiate the jumping script
anyways I basically asking if there is a better way of doing this
Most fighting games work on a system of far range, close range, and mid range. Depending on which range the player is in, the AI will commence with a certain type of attack for that range. Don't forget that the AI sometimes jumps just like the player does, and that they need to work with aerial attacks too.
_________________
Style[Stayl] (n) - One's unique and personal method of defacing a perfectly good piece of paper.
Most fighting games work on a system of far range, close range, and mid range. Depending on which range the player is in, the AI will commence with a certain type of attack for that range. Don't forget that the AI sometimes jumps just like the player does, and that they need to work with aerial attacks too.
So this is what I'm thinking, I would have a variable track the distance between the two players then based on the distance of close, mid, and far, preform the attacks and if one player is above the other then jump, and if on player is above the other && the distance is close then preform the ariel attack...
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum