Close

June 19, 2018

Fighting Game Day 2

Now that I have a working title and select screen, I started on a basic fighting system. The first script I created was a StateManager, a script that will control the player’s information including their health, whether or not they’re moving, attacking, in the air, etc. Using these variables I created a second script to physically control movement and jumping, using simple forces and velocity. With movement done, I created a script to control animations, which will additionally control some values for attacks, such as the different types of attacks and the attack rate. When these animations were working properly, I added in some colliders, a top one and a bottom one. Then I turned them on or off depending on if the player is standing, in the air, or crouching. Additionally, I added more colliders which I enabled and disabled for the actual attacks. With that done, I created a health script which also updates itself onto some health bars in the actual game. Finishing it with a time limit. Once everything was thoroughly working, I started on a combo system, to keep things simple, I utilized the animater and through parameters created a combo. Unfortunately, upon further testing I discovered this would only work with certain combos, if I wanted a combo in which one button is pressed consecutively, only the last animation would be displayed. I decided to call it a night and brainstorm more the next day.

Leave a Reply