I have problem to make player rotate when affected by gravity ,
my Gravity code is
local motionx = 0
local function onAccelerate( event )
motionx = 20 * event.yGravity
– player:play()
end
local function moveplayer (event)
player.y = player.y - motionx
end
Runtime:addEventListener (“accelerometer”, onAccelerate)
[import]uid: 13061 topic_id: 11399 reply_id: 311399[/import]