A
AlexisSablay0
Guest
Hello i'm making a shooter and i have a animation when he shoot but he get activated only if i click with the left button of the mouse.
if the character is moving to the left i use :
if mouse_check_button(mb_left) and keyboard_check(ord("D"))
{
sprite_index = sRunSleft;
}
The fact is than if the mouse is in the right and the character moving to the left the animation will be in the left and not in the right so i want create an animation for when he is moving left and shooting right but i don't know how can i activate him so please can somebody help me
if the character is moving to the left i use :
if mouse_check_button(mb_left) and keyboard_check(ord("D"))
{
sprite_index = sRunSleft;
}
The fact is than if the mouse is in the right and the character moving to the left the animation will be in the left and not in the right so i want create an animation for when he is moving left and shooting right but i don't know how can i activate him so please can somebody help me