Including score function in game for distance traveled.

Ok I do have the variable declared right above all my functions didnt post that sorry… Also my rocketReady function I guess only gets called once. I have it up top where I declare my rocket itself like this…

[lua]rocketIntro = transition.to(rocket,{time = 1000, x = 100, onComplete = rocketReady}) [import]uid: 20272 topic_id: 35220 reply_id: 140122[/import]

@mkjt88 look at my post (#6) that should be all you need. [import]uid: 58885 topic_id: 35220 reply_id: 140128[/import]

Alright I took out this part and made sure everything was the same and it works now. Appreciate all the help.

[lua] if rocket.ready == false then
timer.pause(scoreTimer) [import]uid: 20272 topic_id: 35220 reply_id: 140133[/import]