Hey guys I cant seem to figure out how to make it so after you release the move right button it goes back to the idle animation from the running. I just need to set the sequence and play the idle sheet after release of btnR.
Thanks! Tyler Jacobson
function btnR:touch() motionx = speed; local function swapSheet() --eric is main character. eric:setSequence( "run" ) eric:play() end timer.performWithDelay( 200, swapSheet ) end btnR:addEventListener("touch",btnR)