Help with scoring

86 views
Skip to first unread message

Yosbones

unread,
Aug 23, 2015, 10:19:59 PM8/23/15
to PuzzleScript
I was wondering if someone could please tell me how to count score for a game. Different things need to be worth different amounts of points. So if anyone could help with this it would be wonderful. I have the rest of the game completed already, so if you need it to help I will reply with a link.

Jamie Perconti

unread,
Aug 24, 2015, 12:01:02 AM8/24/15
to Yosbones, PuzzleScript
There's nothing built in to Puzzle Script to facilitate scoring systems. Basically what you'll have to do is:

-- Define all the tiles you'll need to display scores (probably just sprites for numerals 0-9, if you want to display score as a number in base 10)

-- Write rules that increment the score

-- Have the actions in your game that are worth points trigger the score-increment rules.

For the middle part, I'd probably do something like:

1) define dummy objects and put them in the positions of the scoreboard: ones tens hundreds etc
2) define dummy objects that you can generate anywhere on the level when you need to indicate the score is changing: add1point add10points add100points and so on
3) have rules like this:

[add1point] [ones numeral0] -> [] [ones numeral1]
[add1point] [ones numeral1] -> [] [ones numeral2]
[add1point] [ones numeral2] -> [] [ones numeral3]
...
[add1point] [] [ones numeral9] -> [] [add10points] [ones numeral0]

[add10points] [tens numeral0] -> [] [tens numeral1] ......

I think all those rules would need to be inside a startloop/endloop. Disclaimer: I haven't tried to make a game with a score system like this, I just wrote all this up based on how I might try to do it first. It might or might not look anything like what other people have found workable. Hope it helps get you started though! --Jamie

On Sun, Aug 23, 2015 at 10:19 PM, Yosbones <yo...@therothmans.net> wrote:
I was wondering if someone could please tell me how to count score for a game. Different things need to be worth different amounts of points. So if anyone could help with this it would be wonderful. I have the rest of the game completed already, so if you need it to help I will reply with a link.

--
You received this message because you are subscribed to the Google Groups "PuzzleScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puzzlescript...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yosbones

unread,
Aug 24, 2015, 12:14:28 AM8/24/15
to PuzzleScript, yo...@therothmans.net
Thank you so much! I will get back to you if it works :)

Benjamin Davis

unread,
Aug 24, 2015, 6:32:47 PM8/24/15
to PuzzleScript
I wrote a (fairly) readable scoring system for my Threes demake that you can feel free to steal: http://www.puzzlescript.net/editor.html?hack=9123086

Yosbones

unread,
Aug 24, 2015, 10:42:49 PM8/24/15
to PuzzleScript
Your demake is actually what inspired me to make the game this game. xD I tried to base my scoring system after yours originally but I couldn't understand it. I am mostly done with my scoring system already the problem being there is a game breaking bug where scoring won't work sometimes that I can't seem to fix. Do you think you could please help me with it? http://www.puzzlescript.net/editor.html?hack=8e28c255ad8efb825324
Reply all
Reply to author
Forward
0 new messages