Score based on height
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
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
Doodle jump marketplace template did that.
you can set score once user jump on platform each time. You need to change score logic.
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.
Then in my timer every 0 seconds I change game.score to self.position.y + game.portal
http://www.mediafire.com/?dbmcmim24olazum