J
JinNJuice
Guest
I'm making a sort of fighting game where the players can choose which moves to assign to their controls. Most of these moves have two functions; quick attack and charge heavy. The problem I'm facing is getting a button to do different moves from pressing or releasing.
Currently, I have it set up where buttons can be remapped, so button presses have control variable names linked to them. Afterwards, moves set in scripts can be designated to each control button.
So for instance, when the game first loads, there's a basic .ini file that defines and sets the variables and values related to controls, such as up, down, left, right, A, B, and C. Then the players can set moves to A, B, or C, then choose the stage.
How would I go about getting one button to do a different move in the script according to how long it is pressed down?
Currently, I have it set up where buttons can be remapped, so button presses have control variable names linked to them. Afterwards, moves set in scripts can be designated to each control button.
So for instance, when the game first loads, there's a basic .ini file that defines and sets the variables and values related to controls, such as up, down, left, right, A, B, and C. Then the players can set moves to A, B, or C, then choose the stage.
How would I go about getting one button to do a different move in the script according to how long it is pressed down?