so i am new to composer api so i do not knw where to update the animation of my player some help plz?
local sheetOptions =
{
width = 75,
height = 90,
numFrames = 10
}
local sheet_charwalk = graphics.newImageSheet( “images/character/male/male-walk.png”, sheetOptions )
local sequence_char={
{
name=“walk”,
start= 1,
count =10,
time = 800,
loopCount = 0,
loopDirection = “forward”
},
{
name=“idle”,
frames = { 1 },
time = 800,
loopCount = 0,
loopDirection = “forward”
}
}
local charwalk = display.newSprite( sheet_charwalk, sequence_char )
the question now is where do i put the charwalk:play() and how to change idle to walk when i move my char with dpad