Hi guys, i have a ball rolling with physics and a camera that follows it, All good except i want to slow and stop the camera depending on the speed of the ball.
Any ideas how i would acheive this?
My code for the camera based on an exmample i found on here…
local function moveCamera(event)
if ball.x > 100 then
group.x = group.x - 1
end
end
Runtime:addEventListener( “enterFrame”, moveCamera )
Thanks
[import]uid: 162458 topic_id: 29613 reply_id: 329613[/import]