12-26-2014, 03:55 PM
Code for keyboard left/right event
Replace sprAttack with whatever your attack sprite is called. This code checks if the player is on the ground while slashing, and if both of these are true, the code to accelerate does not run.
Code:
if!(sprite_index == sprAttack && !place_free(x, y + 1)){
//Movement code here
};
Replace sprAttack with whatever your attack sprite is called. This code checks if the player is on the ground while slashing, and if both of these are true, the code to accelerate does not run.