transition.to(star,{y=offScreen\*2,time=objSpeed\*speedFactor}) if resume==2 then transition.pause() end -- keeps stars from moving when resuming a game
In the above code I have placed stars on a screen to move off screen at variable rates. If the game is interupted and restarted, a value of 2 for resume is passed to the function that places the stars on screen. When resume==2 the moving stars are stopped after placing them until the game is restarted by tapping a resume button.
This works with storyboard just fine. However the identical code doesn’t work at all with composer. If I use this code in composer the stars never pause, they just keep moving.
Anybody know why this would work in storyboard and not composer???
Thanks,
Guy