Help with giving SCORES to player; how to use the GiveScore() function [SOLVED]

Started by eissen_eiram, Tue 20/03/2012 03:36:50

Previous topic - Next topic

eissen_eiram

Hi. I am having a difficulty in scripting the GiveScore() function. My game is a garbage segregation game and if ever the player place the correct garbage in the the correct garbage can. For example,  the player picks up belongs to the biodegradable group, then he place it on the biodegradable trash can, then he will gain 3 points

I made a GUI for score with a label to show the score. Will this be helpful? How am i going to incorporate or make the score show on the label in the score GUI that i made?

Please do share your thoughts about this. Your help will be greatly appreciated.

Thanks a lot!

steptoe

To adjust score simply add where it is appropriate:

Code: ags

GiveScore(5);


This will add 5 to the players score and should show on gui label provided you have used @SCORE@ in the labels 'text' on it's events panel.

To take score off simply use minus (-)
Code: ags

GiveScore(-2);


There is also a Maximum possible score in the General settings.

Alternatively check out Variables which can be used for scores and other things.

SMF spam blocked by CleanTalk