User Experience 9: Adding exclusive actions

As the basic control of the combat is completed, I wanted to add exclusive actions to the jumping and crouching functions. I implemented new animations exclusive to the jumping and crouching states which allow for a jump-kick attack and a crouched floor-sweep. I had to create a series of code for each function that would ensure that the animations could only play while mid-jump or mid-crouch. This was very challenging, as I am extremely unfamiliar with programming, but I was eventually able to make it work. One of the challenges I faced was ensuring that after a crouching attack, the player would not return to their idle state. I needed to create several chains that fed back into each other to make it work. This is the resulting code that I created for both the jumping attack and the crouching attack. Both of these animations play on mouse click, but only when they are mid-jump or crouch. 

I used the following tutorials to support me when I was working on this, though I had to modify the code throughout:

This entry was posted in 2.1- Design Project 2. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *