Hi.
I’m having some issues with slowing down the speed of my scrolling back ground with a button press and then restoring the original speed once you depress. So far I’ve been using simple Transitions that loop once they go a curtain distance off the screen.
This has not been working for me, I just get choppy breaks and it does not restore to the correct position.
Any help would be appreciated!
[code]
local function speedChange(event)
if event.phase == “began” then
mountain_big.x = mountain_big.x - xOffset*0.100
elseif ( event.phase == “ended” or event.phase == “canceled” ) then
mountain_big.x = mountain_big.x - xOffset
end
end
[import]uid: 66329 topic_id: 19022 reply_id: 319022[/import]
[import]uid: 84637 topic_id: 19022 reply_id: 73358[/import]