Hi everyone… I have a graphic in the background of my app that’s moving (slowly):
[lua]
local function animateCloudSlow ( event )
cloud.rotation = cloud.rotation + 0.0003
cloud.x = cloud.x - 0.008
cloud.y = cloud.y + 0.03
cloud.xScale = cloud.xScale + 0.00001
cloud.yScale = cloud.yScale + 0.00001
[/lua]
This is triggered by a runtime listener and as you can see, it’s not doing much…
The problem arises when I want to affect (update) those parameters… I’m trying to get one of my function-buttons (using an object event listener) to basically accelerate all of those variables by having it trigger an alternative function with different settings. But it won’t, for a reason I don’t understand yet, override the original function… If I make large changes like " cloud.xScale = cloud.xScale + 2", it does have an effect, but it’s immediate, rather than a gradual change.
As this screen object belong to one of many ‘parallax’ groups, I don’t want to use ‘transition.to’, so I’m a bit stuck.
Any help will be gratefully appreciated.
Best regards
Mark [import]uid: 176868 topic_id: 37480 reply_id: 67480[/import]