function Start (event) options = { width = 95, height = 50, numFrames = 2 } floorLvl = 1 btnStart.isVisible = false textStart.isVisible = false background.isVisible = false textTitle.isVisible = false textTitle2.isVisible = false room = display.newImage("room.png") room.x = 240 room.y = 160 room.xScale = 1.55 room.yScale = 1.55 sprPlayer = display.newImage("Player.png") sprPlayer.x = G sprPlayer.y = X sprPlayer.xScale = 0.5 sprPlayer.yScale = 0.5 mveSqrTL = graphics.newSprite("movementSQR.png", options) mveSqrTL.xScale = 0.65 mveSqrTL.yScale = 0.65 mveSqrL = graphics.newSprite("movementSQR.png", options) mveSqrL.xScale = 0.65 mveSqrL.yScale = 0.65 mveSqrBL = graphics.newSprite("movementSQR.png", options) mveSqrBL.xScale = 0.65 mveSqrBL.yScale = 0.65 mveSqrB = graphics.newSprite("movementSQR.png", options) mveSqrB.xScale = 0.65 mveSqrB.yScale = 0.65 mveSqrT = graphics.newSprite("movementSQR.png", options) mveSqrT.xScale = 0.65 mveSqrT.yScale = 0.65 mveSqrTR = graphics.newSprite("movementSQR.png", options) mveSqrTR.xScale = 0.65 mveSqrTR.yScale = 0.65 mveSqrR = graphics.newSprite("movementSQR.png", options) mveSqrR.xScale = 0.65 mveSqrR.yScale = 0.65 mveSqrBR = graphics.newSprite("movementSQR.png", options) mveSqrBR.xScale = 0.65 mveSqrBR.yScale = 0.65
im trying to make a sprite that switches to its next frame once tapped but i have no clue how it works, i have the image and everything but i dont know how the code goes