How Do I Make My Own Highscore?
Posted 13 July 2008 - 02:21 AM
Could someone please post how to do it in detailed steps or maybe post a link to a good example.Or even better maybe make me an example.
I want it like a normal highscore but I want it to show how long the game went for and the score the player had and the rating.
Sorry if this is a big ask,if you help me and it works I will be sure to credit the person.
Posted 13 July 2008 - 02:44 AM
highscore_show(numb) Shows the highscore table. numb is the new score. If this score is good enough to be added to the list, the player can input a name. Use -1 to simple display the current list.
highscore_set_background(back) Sets the background image to use. back must be the index of one of the background resources.
highscore_set_border(show) Sets whether the highscore form must have a border or not.
highscore_set_font(name,size,style) Sets the font used for the text in the table. (This is a normal Windows font, not one of the font resources.) You specify the name, size and style (0=normal, 1= bold, 2=italic, 3=bold-italic).
highscore_set_colors(back,new,other) Sets the colors used for the background, the new entry in the table, and the other entries.
highscore_set_strings(caption,nobody,escape) Changes the different default strings used when showing the highscore table. caption is the caption of the form. nobody is the string used when there is nobody at the particular rank. escape is the string at the bottom indicating to press the escape key. You can in particular use this when your game should use a different language.
,size) Shows the highscore table with a number of options (can also be achieved by using a number of the previous functions). numb is the new score. If this score is good enough to be added to the list, the player can input a name. Use -1 to simple display the current list. back is the background image to use, border indicates whether or not to show the border. col1 is the color for the new entry, col2 the color for the other entries. name is the name of the font to use, and size is the font size.
highscore_clear() Clears the highscore list.
highscore_add(str,numb) Adds a player with name str and score numb to the list.
highscore_add_current() Adds the current score to the highscore list. The player is asked to provide a name.
highscore_value(place) Returns the score of the person on the given place (1-10). This can be used to draw your own highscore list.
highscore_name(place) Returns the name of the person on the given place (1-10).
draw_highscore(x1,y1,x2,y2) Draws the highscore table in the room in the indicated box, using the current font.
If you don't know how to use GML, ask.
Posted 30 July 2011 - 07:50 PM
Posted 30 July 2011 - 08:00 PM
Edited by ihato, 22 August 2011 - 12:30 PM.
Posted 30 July 2011 - 08:09 PM
Edited by LOS.A, 30 July 2011 - 08:10 PM.
Posted 31 July 2011 - 12:08 AM
Posted 31 July 2011 - 01:03 AM
Also, you should've made your own topic.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users