working with score help please
Hi
I am in the process implementing scoring in my game, I require some guidance in how I calculate score as metres. My scene is 2045 in pixels vertical, and I was thinking for every 100 pixels = 1 metre?
Is this appropriate?
thanks
I am in the process implementing scoring in my game, I require some guidance in how I calculate score as metres. My scene is 2045 in pixels vertical, and I was thinking for every 100 pixels = 1 metre?
Is this appropriate?
thanks
Comments
Make a new (unmovable) actor and drag it to the scene , then in the scene double press it and unlock it (cause we want to use scene.origin.X) ,
Make a game attribute - integer - call it "distance run"
In the actor make this constrain :
constrain "game.distance run" TO scene.Camera.Origin.X/100 (dived by 100 if you want - 100 pixels = 1 meter)
That way you have a game attribute with the distance score
Roy.
thanks so much