working with score help please

FirstDanFirstDan Member Posts: 208
edited December 2011 in Working with GS (Mac)
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

Comments

  • POMPOM Member Posts: 2,599
    My suggestion will be to make a new actor that calculate this score :
    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.
  • FirstDanFirstDan Member Posts: 208
    wow roy, I will try that out now,

    thanks so much
Sign In or Register to comment.