Demo for level ranking?
GamersRejoice
Member Posts: 817
For my game I want to give a medal or star based on the score for each level. I'm wondering if anyone knows of a demo that explains this? Or if it's simple enough to explain on the forum that would help too. Thanks!
Comments
When Score equals 10 Change attribute game.scorelevel to 1
When Score equals 20 Change attribute game.scorelevel to 2
When Score equals 30 Change attribute game.scorelevel to 3
Then whatever rule decides the level is complete include these.
when attribute game.scorelevel equals 1 Spawn Actor Bronze
when attribute game.scorelevel equals 2 Spawn Actor Silver
when attribute game.scorelevel equals 3 Spawn Actor Gold
Booleans seem to be less resource intensive but in would be very easy to miss a rule and leave 2 checked for the same level.
As for spawning or not I would actually use a change image. But that really depends on your level icons if you can see numbers and what not through the star badge then this way would make your game very big since you would need 4 images per icon. If the level numbers do not appear through the star then you could have 3 level icons with each star color and when the level is not complete it shows an icon with the level number and when it is complete it changes to one of the 3 completion icons.
I feel as though I am rambling now so sorry if that makes no sense.
Happy New Year