> hi.
> when i press a, my character walks left and plays the left walking animation.
> the sprite changes once i've picked up the gun, and i am trying to make it show the different animation if (a is pressed && holdinggun == 1)
> however, it doesn't like me trying to do 2 things at once when i press A.
>
> if anyone knows how i can get this working, i would be very grateful :)
>
> the relevant event sheet and sprites:
> i.imgur.com/YjMeVRe.png
Judging from what I'm seeing, it seems that you don't have an event where holdinggun becomes = to 1.
Did you create an event where, lets say if player is on "collision with gun" then "set value HoldingGun=1"?
Otherwise the animation won't work because HoldingGun never becomes equal to 1. You need an event where the global variable "HoldingGun" can become equal to 1.
Yeah that's in the "purchase" section, it happens when you are touching the gun and you press E.
i.imgur.com/pwAGkcp.png
here are the aiming and purchase classes