Hi all,
I’m working on a kind of sky diving game and would like to have the gravity change when the player pushes the ‘release chute’ button.
Can anyone help with the code needed for this?
I tried this but I feel it’s wrong…
– Release chute button
local releaseChute = display.newImage (“Images/relChute.png”)
releaseChute.x = 440
releaseChute.y = 25
releaseChute.xScale = 0.35
releaseChute.yScale = 0.5
local function pressChute (event)
if event.phase == “began” then
physics.setGravity(0,12)
end
end
releaseChute:addEventListener (“touch”, pressChute)
Thanks for any help 
Alex
[import]uid: 120751 topic_id: 25926 reply_id: 325926[/import]
