I am having trouble doing something that is probobly simple.
i am trying to make a “player” selection in my game where you can press the icon or buttons to change the origional “player” image in another scene.
i have a start, game, and restart scenes
this came out of my game scene. but if the start scene is first in line with the start button etc. then how could i change the “truck.png” from start and it take effect in game and save that “selection”
playerSheet = graphics.newImageSheet( “truck.png”, p_options ) <------ this one is the one i want to change
player = display.newSprite( playerSheet, { name=“player”, start=1, count=2, time=500 } )
player.anchorX = 0.5
player.anchorY = 0.5
player.x = display.contentCenterX - 150
player.y = display.contentCenterY
physics.addBody(player, “static”, {density=.1, bounce=0.1, friction=1})
player:applyForce(0, -300, player.x, player.y)
player:play()
sceneGroup:insert(player)