I’m working on my first game, I learned a lot and I really like the lua and corona sdk, but I still have some difficulties. I’m an Italian guy and I do not know English well.
I have created an animation (sprite) 8 frame, my char walks and stops entirely correct but if I do that when I pushed a button slides?
sheetData = { width=69,height=99,750,count=8,numFrames=8,}
spriteSheet = graphics.newImageSheet(“media/frame-10.png” , sheetData)
sequenceData = {
{name=“charData”, frames={1,2,3,4,5,6,7,8}, count=8, time=600, loopCount=10000}
}
char=display.newSprite (spriteSheet,sequenceData)
char:setSequence(“charData”)
physics.addBody( char, { density=0, bounce=0, friction=1,} )
char.isFixedRotation = true
char.myName=“char”
--char:play()