Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Defense - Redefined.

Defense - Redefined.

Omegavolt
Codename: Karma Online · · 1 min read
939 0
While programming the timer for battles last night, I realized that if I made it so that defending took a set amount of time(which I had made quite short), and if a player tried to defend against an attack, and the defense didnt take as long, the player would have to wait until the attack connected before he would want to do anything else. So, to keep the player from having to continually hit 'Defend' until the attacker's blow connects, I have decided to make defense a state of being rather than a specified event. In ohter words, once a player clicks 'block' or 'parry', he will be in 'defense mode' until the attack connects, regardless of how long it takes, at which point the player will perform whichever defense move he choose.

Discussion

Loading comments...