Highscore tabelle

  • GM 8

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Highscore tabelle

    Moin Moin Leute.
    (Ich weiß Ich soll es selbst machen)
    wer von euch kann mir eine 3 Schwierigkeitsgrad Highscoretabell machen(keine Online hs tabelle)?. :)

    Ich habe es immer versucht und habe es nicht ihn begommen. :heul:
    ich habe es mit ds_list u.s.w versucht.
    das problem ist wenn ich spiele und verliere und Z.b (Schwer) genommen habe soll man sich auch in der hs tabelle (Schwer) eintragen können.
    ich Danke im vorraus. :thumbsup:
    (wehr mir eine blöde antwort geben will, braucht mir keine antwort Schreiben). X(
    Gamemaker ist sehr cool Bist du auch dieser Meinung Oder bin ich ganz alleine mit der Meinung Deutsch
    Gamemaker is very cool If you are also of this opinion Or if I am whole only with the opinion Englisch
    Gamemaker est très cool Si tu es aussi de cette opinion Ou si je suis tout seulement avec l'opinion Französisch
    Gamemaker og a en nippeblæg A viser mæle som a ik' forstår Eller er a alene med denne mening Dänisch von SDX

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von danielknoke ()

  • wie macht man das mit OHS tabelle?.
    damit habe ich mich noch nicht befast, (ist das einfach oder schwer).
    Gamemaker ist sehr cool Bist du auch dieser Meinung Oder bin ich ganz alleine mit der Meinung Deutsch
    Gamemaker is very cool If you are also of this opinion Or if I am whole only with the opinion Englisch
    Gamemaker est très cool Si tu es aussi de cette opinion Ou si je suis tout seulement avec l'opinion Französisch
    Gamemaker og a en nippeblæg A viser mæle som a ik' forstår Eller er a alene med denne mening Dänisch von SDX
  • wer von euch hat 3 schwierigkeitsgrad + 3 highscore tabellen gemacht.
    vielleicht kann mir einar den code geben :?: .
    ich werde mich selbstverständlich (1000mal) bedanken :thumbsup: :thumbsup:

    ICH SOLL:fresse: ich weiß das ich es selber machen soll aber es klapt einfach nicht
    Gamemaker ist sehr cool Bist du auch dieser Meinung Oder bin ich ganz alleine mit der Meinung Deutsch
    Gamemaker is very cool If you are also of this opinion Or if I am whole only with the opinion Englisch
    Gamemaker est très cool Si tu es aussi de cette opinion Ou si je suis tout seulement avec l'opinion Französisch
    Gamemaker og a en nippeblæg A viser mæle som a ik' forstår Eller er a alene med denne mening Dänisch von SDX
  • nein englich kann ich nicht!.
    aber danke für deine hilfe
    Gamemaker ist sehr cool Bist du auch dieser Meinung Oder bin ich ganz alleine mit der Meinung Deutsch
    Gamemaker is very cool If you are also of this opinion Or if I am whole only with the opinion Englisch
    Gamemaker est très cool Si tu es aussi de cette opinion Ou si je suis tout seulement avec l'opinion Französisch
    Gamemaker og a en nippeblæg A viser mæle som a ik' forstår Eller er a alene med denne mening Dänisch von SDX
  • Es gibt viele die kein englisch können,ok.
    ich kann nicht viel englisch, ich hate kein englisch in der schule. ich bin dabei es zu lernen....
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Also ich habe es so gemacht,es hat geklapt. Die Punkte wurden
    gespeichert ihn einer datei,wenn ich die tabelle aufrufe zeigt er mir auch die punkte an.
    wenn ich die tabelle schliese und wieder öffne sind die punkte weck in der tabelle und in der datei.

    so der code:
    <obj_Ball_Normal>Step>Execute Code (wenn man das spiel geschaft hat)

    GML-Quellcode

    1. //inihst ist für die datei "inihst1.dat" (1(leicht))und so weiter//
    2. if global.inihst=1 then {script_execute(highscore_save,"inihst1.dat");}
    3. if global.inihst=2 then {script_execute(highscore_save,"inihst2.dat");}
    4. if global.inihst=3 then {script_execute(highscore_save,"inihst3.dat");}


    <obj_Spieler>Step>Execute Code

    GML-Quellcode

    1. //inihst ist für die datei "inihst1.dat" (1(leicht))und so weiter//
    2. if global.inihst=1 then {script_execute(highscore_load,"inihst1.dat");}
    3. if global.inihst=2 then {script_execute(highscore_load,"inihst2.dat");}
    4. if global.inihst=3 then {script_execute(highscore_load,"inihst3.dat");}


    No More Lives

    GML-Quellcode

    1. //inihst ist für die datei "inihst1.dat" (1(leicht))und so weiter//
    2. if global.inihst=1 then {script_execute(highscore_save,"inihst1.dat");}
    3. if global.inihst=2 then {script_execute(highscore_save,"inihst2.dat");}
    4. if global.inihst=3 then {script_execute(highscore_save,"inihst3.dat");}


    GML-Quellcode

    1. //<obj_Leicht>Left Pressed>Execute Code//
    2. global.inihst=1
    3. //<obj_Leicht>Left Pressed>Execute Code//
    4. global.inihst=2
    5. //<obj_Leicht>Left Pressed>Execute Code//
    6. global.inihst=3
    7. //<obj_Controller_Stufe>Create>Execute Code//
    8. global.inihst=1
    9. //<obj_HS_Leicht>Left Pressed>Execute Code//
    10. script_execute(highscore_load,'inihst1.dat',highscore_show(-1));
    11. //<obj_HS_Mittel>Left Pressed>Execute Code//
    12. script_execute(highscore_load,'inihst2.dat',highscore_show(-1));
    13. //<obj_HS_Schwer>Left Pressed>Execute Code//
    14. script_execute(highscore_load,'inihst3.dat',highscore_show(-1));
    Alles anzeigen

    oder habe ich was falsch gemacht!.
    und hir ist einmal Highscore_load und highscore_save.

    GML-Quellcode

    1. // highscore_load(filename)
    2. // v1.00
    3. // PLEASE READ THE INTRODUCTION BELOW BEFORE USING THIS SCRIPT!
    4. // This will load a highscore table from the given filename!
    5. // Filename should contain the extension (eg. "highscore1.dat").
    6. // Filename can also contain the whole path (eg. "C:\Program files\MyGame\data2.dat")
    7. // or otherwise the file is loaded from the working directory.
    8. // NOTE: The previous highscore WILL be cleared! You can save it using highscore_save()
    9. // before calling this script! If the given filename doesn't exist or the loading
    10. // fails the highscore is cleared anyway!
    11. // This script returns whether the loading succeeds (true or false).
    12. var filename, filehandle, str, val; // Define temporary variables required.
    13. filename = argument0;
    14. if not is_string(filename) // Checks whether the given filename is valid.
    15. return false;
    16. highscore_clear(); // Clear the previous highscore table.
    17. if not file_exists(filename) // Checks whether the given filename exists!
    18. return false;
    19. filehandle = file_text_open_read(filename); // Opens the file for reading!
    20. while (not file_text_eof(filehandle)) { // Start the "reading loop".
    21. str = file_text_read_string(filehandle); // Read a player name as string
    22. file_text_readln(filehandle); // Skip the rest of the line
    23. // Check whether there are still lines left
    24. if not file_text_eof(filehandle) and string_length(str) > 0 {
    25. val = file_text_read_string(filehandle); // Read a score value AS STRING!
    26. file_text_readln(filehandle); // Skip the rest of the line
    27. // Check whether the score doesn't contain any forbitten characters!
    28. if (string_digits(val) == val and string_length(val) > 0) {
    29. // The name-score pair should be OK! Add it to the highscore table!
    30. highscore_add(str,real(val));
    31. }
    32. }
    33. // Now, if there are any lines left the loop will start from beginning!
    34. } // End the "reading loop"
    35. file_text_close(filehandle); // Closes the file!
    36. return true; // Everything is OK. Return succesfull :)
    37. // This script is made by Kimmo "Waspwort" Kiiski, 2005 and if you use
    38. // or modify this in your game it would be nice if you credit me.
    Alles anzeigen

    GML-Quellcode

    1. // highscore_save(filename)
    2. // v1.00
    3. // PLEASE READ THE INTRODUCTION BELOW BEFORE USING THIS SCRIPT!
    4. // This will save the current highscore table in the given filename!
    5. // Filename should contain the extension (eg. "highscore1.dat").
    6. // Filename can also contain the whole path (eg. "C:\Program files\MyGame\data2.dat")
    7. // or otherwise the file is saved in the working directory.
    8. // If the given filename already exists it will be overwritten!
    9. // This script returns whether the writing succeeds (true or false).
    10. var filename, tempfile, filehandle, t; // Define temporary variables required.
    11. // NOTE: The higshcore will be FIRST saved in the temorary file,
    12. // THEN copied to the given filename!!!
    13. tempfile = temp_directory+"\temphighscore.tmp"; // Define the temporary filename
    14. filename = argument0;
    15. if not is_string(filename) // Checks whether the given filename is valid.
    16. return false;
    17. filehandle = file_text_open_write(tempfile) // Open the temp file for writing!
    18. for (t=1; t<=10; t+=1) { // Handle the highscore places from 1 to 10.
    19. file_text_write_string(filehandle,highscore_name(t)) // Write the player name
    20. file_text_writeln(filehandle) // Start a new line
    21. file_text_write_string(filehandle,string(highscore_value(t))) // Write the score as string
    22. file_text_writeln(filehandle) // Start a new line
    23. } // End FOR
    24. file_text_close(filehandle); // Close the file.
    25. if not file_copy(tempfile,filename) // Copy the temp file to the given filename!
    26. return false; // Copying failed!
    27. file_delete(tempfile); // Finally delete the temporary file.
    28. return true; // Everything is OK. Return succesfull.
    29. // This script is made by Kimmo "Waspwort" Kiiski, 2005 and if you use
    30. // or modify this in your game it would be nice if you credit me.
    Alles anzeigen
    Gamemaker ist sehr cool Bist du auch dieser Meinung Oder bin ich ganz alleine mit der Meinung Deutsch
    Gamemaker is very cool If you are also of this opinion Or if I am whole only with the opinion Englisch
    Gamemaker est très cool Si tu es aussi de cette opinion Ou si je suis tout seulement avec l'opinion Französisch
    Gamemaker og a en nippeblæg A viser mæle som a ik' forstår Eller er a alene med denne mening Dänisch von SDX

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von danielknoke ()