Score based on height

LooseMooseLooseMoose Member Posts: 224
edited December 2012 in Working with GS (Mac)
Hey, I'm making a jumping style game like doodle jump, and I want the score to = hero's distance traveled on the y axis.
That's easy enough but my issue is that my scene is only 5000 high and I wrap the Y axis. So when I go through the top of my scene the score goes back to 0.

I have a portal at the top of the scene and I made a rule that changes the score to score + 5000 when it overlaps with the hero. But the score which changes score to hero's self position y is over-riding this so my score keeps going back to 0.

I'm sure there is a simple way to create the score system I am after, I am just having a brain block right now so I need help haha. So fire away. Thanks

Comments

  • creativeappscreativeapps Member Posts: 1,770
    5000 hight is not require you can do that with 900 hight. regenerate the actors.
    Doodle jump marketplace template did that.

    you can set score once user jump on platform each time. You need to change score logic.
  • LooseMooseLooseMoose Member Posts: 224
    edited December 2012
    My game is only similar to doodle jump in the respect that you jump on platforms, I had a look at that template but it wasn't what I was after.

    The top of the scene acts as a portal which teleports the hero to different environments within the scene

    I'll have another look at that template and see if I can make use of its scoring system.
  • LooseMooseLooseMoose Member Posts: 224
    No worries, I figured it out. Just made an attribute called portal and when my hero overlaps with it (portal is located at 5000 mark), it changes game.portal to game.portal+5000.

    Then in my timer every 0 seconds I change game.score to self.position.y + game.portal
  • creativeappscreativeapps Member Posts: 1,770
    Great. I have demo of that let me know if you want it.
  • LooseMooseLooseMoose Member Posts: 224
    Yea that would be cool if I could have a look at it. Might come in handy
  • creativeappscreativeapps Member Posts: 1,770
    This one is working great. I hope its helpful for you... :)

    http://www.mediafire.com/?dbmcmim24olazum
Sign In or Register to comment.