Score system help part one: adding time and score to make a total score

MegaemmanMegaemman Member, PRO Posts: 72
edited August 2015 in Working with GS (Mac)

I have gotten to the part of my game where I am working on the score system. I would like to add time(integer) plus the score(integer) to add up and give a total score(attribute) for each level.

( of course i would like that it saved in the table but one step at a time)

i have an actor that acts as a countdown timer it gets its time from my attribute table according to whatever level your on:
https://www.dropbox.com/s/0zxnczrric3bygd/Screenshot 2015-08-09 23.55.33.png?dl=0

the counter is turned on and off by a Boolean attribute:
https://www.dropbox.com/s/b2e1acyw36ghxkz/Screenshot 2015-08-10 00.02.12.png?dl=0

I tried this initially for the Score total:

change attribute: game.scoretot To: game.timer + game.score

but for some reason it will not pick up the value for the timer:

so i tried using the values in the table :
https://www.dropbox.com/s/kl1jhnaa5wn5wfi/Screenshot 2015-08-10 00.09.09.png?dl=0

It did add up the score total! However it took the value i placed in the original table for the timer to count down from. not the time left once the game is complete ,

So i thought maybe i could save the time left on the timer like so:
https://www.dropbox.com/s/ifj91acwmow8zuv/Screenshot 2015-08-10 00.11.31.png?dl=0

Then make the score total based off the time left table value plus the score:

https://www.dropbox.com/s/g7v12kkr6jgzwjc/Screenshot 2015-08-10 00.14.07.png?dl=0

still no dice...

I'm at a lost here if anybodies got suggestions or critiques on my code i will be happy to hear cause i am at a lost here.

Comments

Sign In or Register to comment.