2 Sprite : Walk and Glide

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()

Always put code in code-tags when posting. Second, please rephrase question because I do not know what you mean :frowning:

I have created two buttons, tapping the top button, the char as he runs you have a setLinearVelocity upwards … Now I would like to do that when I touch the second button sprite and physical changes, making a slip

Always put code in code-tags when posting. Second, please rephrase question because I do not know what you mean :frowning:

I have created two buttons, tapping the top button, the char as he runs you have a setLinearVelocity upwards … Now I would like to do that when I touch the second button sprite and physical changes, making a slip