ok, so i have it set to where when im walking i can go to running then back to walking, then when i do nothing i do my idle animation, this all works fine and dandy. but i tried to empliment an attack animation to play when i press ctrl, but nothing happens because when im pressing the up key then my walking animation is always true? here is my code.
my animation set up
if animestate#= 0 then loop object 2,2497,2696
if animestate#= 1 then loop object 2,235,259
if animestate#= 2 then loop object 2,300,318
if animestate#= 3 then loop object 2,2786,2836
my command set up
if keystate(200)=1 and animestate#= 2 and keystate(157)=1 then animestate#= 3
ive tryed difrent things here as none worked
i even tryed a mouse click here to
and then my whole animation coad set up
if animestate#= 0 then loop object 2,2497,2696
if animestate#= 1 then loop object 2,235,259
if animestate#= 2 then loop object 2,300,318
if animestate#= 3 then loop object 2,2786,2836
if keystate(200)=1 AND ENERGY#=10 then move object 2,-0.6:move camera 0,0.1:animestate#= 1
if keystate(200)=1 AND ENERGY#=20 then move object 2,-0.7:move camera 0,0.7:animestate#= 1
if keystate(200)=1 AND ENERGY#=30 then move object 2,-0.8:move camera 0,0.8:animestate#= 1
if keystate(200)=1 AND ENERGY#=40 then move object 2,-0.9:move camera 0,0.9:animestate#= 1
if keystate(200)=1 AND ENERGY#=50 then move object 2,-1:move camera 0,1:animestate#= 1
if keystate(200)=1 AND ENERGY#=60 then move object 2,-1.1:move camera 0,1.1:animestate#= 1
if keystate(200)=1 AND ENERGY#=70 then move object 2,-1.2:move camera 0,1.2:animestate#= 1
if keystate(200)=1 AND ENERGY#=80 then move object 2,-1.5:move camera 0,1.5:animestate#= 1
if keystate(200)=1 AND ENERGY#=90 then move object 2,-1.8:move camera 0,1.8:animestate#= 1
if keystate(200)=1 AND ENERGY#=100 then move object 2,-2:move camera 0,2:set object speed 2,100:animestate#= 1
if keystate(200)=1 AND keystate(19)=1 AND SC_ObjectCollision(2,123)=1 then move object 2,-3:move camera 0,3:set object speed 2,130:SHOES#=SHOES#-1:paste image 1,595,1,1:set cursor 760,30:print "SHOES ENERGY {",SHOES#:animestate#= 2
if keystate(200)=0 then animestate#= 0
if keystate(200)=1 and animestate#= 2 and keystate(157)=1 then animestate#= 3
any help would be appreciated
dweeb