I'm having trouble with making my sprite be in standing frame when a running button is not pressed, I keep making the character stop in mid running sprite
this is code I made function _init() sprite=1 stimer=0 ani_speed=5 standing_frame=1 first_frame=2 last_frame=5 end function _update() if btn(➡️) then if stimer<ani_speed then stimer+=1 else if sprite<last_frame then sprite+=1 else sprite=first_frame else if sprite=standing_frame end stimer=0 end end end function _draw() cls() spr(sprite,63,63) end