Search found 61 matches

by Mjhay
Wed May 05, 2021 10:44 am
Forum: Ren'Py Questions and Announcements
Topic: deleting all persistent data except the persistent on the savegame
Replies: 9
Views: 1235

Re: deleting all persistent data except the persistent on the savegame

There is no persistent data in the save game. The whole point of persistent data is to exist outside of saves and game instances, to persist even when you start a new game or delete a save. It is shared data belonging to application itself. If you want some data to be part of saved game, you should...
by Mjhay
Wed May 05, 2021 10:14 am
Forum: Ren'Py Questions and Announcements
Topic: deleting all persistent data except the persistent on the savegame
Replies: 9
Views: 1235

deleting all persistent data except the persistent on the savegame

my new game button on main menu is working, but my problem is when i create new game, the persistent data the on the save game is also deleted. and i want that if i create new game all the persistent data will be deleted except the persistent data on the save game. or should i say when create new ga...
by Mjhay
Thu Apr 29, 2021 4:39 am
Forum: Ren'Py Questions and Announcements
Topic: timer displaying time format
Replies: 2
Views: 438

Re: timer displaying time format

It is just basic math: First you want to get minutes from remaining part. It is just integer part of remaining time divided by number of seconds in minute: time_remaining / 60 Seconds are simple too: just a remainder of above division: time_remaining % 60 . Then you combine all it into string. You ...
by Mjhay
Thu Apr 29, 2021 3:23 am
Forum: Ren'Py Questions and Announcements
Topic: timer displaying time format
Replies: 2
Views: 438

timer displaying time format

how can i display the timer countdown from seconds to time format ? my timer is displaying seconds and i want to display it to minutes and seconds like : 10 minutes my timer is displaying 600 how can i make my 10mins to 10:00 the timer code : screen countdown(duration=600): default time_remaining = ...
by Mjhay
Mon Mar 15, 2021 9:43 am
Forum: Ren'Py Questions and Announcements
Topic: it is possible to delete all save game and persistent data except highscore?
Replies: 1
Views: 333

it is possible to delete all save game and persistent data except highscore?

it is possible to delete chosen persistent data? how can i delete all the persistent data except the highscore? its like when i clicked New Game button in main menu all the save game and persistent data will be deleted except the highscore. init python: def fileDeleteAll(): for s in renpy.list_saved...
by Mjhay
Sun Mar 07, 2021 7:29 am
Forum: Ren'Py Questions and Announcements
Topic: any idea, suggestion on making a highscore on main menu?
Replies: 11
Views: 497

Re: any idea, suggestion on making a highscore on main menu?

init python: def addHighScore(name, score): sindex = None for index, (name_, score_) in enumerate(persistent.highscores): if name == name_: sindex = index break if sindex is not None: persistent.highscores[sindex][1] = score else: persistent.highscores.append([name, score]) Add this in your code, t...
by Mjhay
Sun Mar 07, 2021 2:54 am
Forum: Ren'Py Questions and Announcements
Topic: any idea, suggestion on making a highscore on main menu?
Replies: 11
Views: 497

Re: any idea, suggestion on making a highscore on main menu?

Note, screens can be executed repeatedly by ren'py, so it's important they don't change data outside the screen. ie, `$ persistent.right_answers.append((persistent.player_name, right_answers))` will cause many duplicate scores to accumulate in `right_answers`. As for why your code still doesn't wor...
by Mjhay
Sat Mar 06, 2021 11:50 pm
Forum: Ren'Py Questions and Announcements
Topic: any idea, suggestion on making a highscore on main menu?
Replies: 11
Views: 497

Re: any idea, suggestion on making a highscore on main menu?

and how can i make a list of persistent data? its like if i clicked savebutton on the quiz result, the name and score will be saved in persistent. and if i take another quiz and save again name and score to persistent and make list of persistent data. is that possible or make sense? my quiz result c...
by Mjhay
Sat Mar 06, 2021 10:51 pm
Forum: Ren'Py Questions and Announcements
Topic: any idea, suggestion on making a highscore on main menu?
Replies: 11
Views: 497

Re: any idea, suggestion on making a highscore on main menu?

Like label s, screen s should be put at 0 level of indentation. So screen s should be outside label s and be of the same level as label statements. default persistent.highscores = [] screen highscores(): # uncomment the tag menu if this will be part of the main menu/game menu # tag menu vbox: for p...
by Mjhay
Sat Mar 06, 2021 11:28 am
Forum: Ren'Py Questions and Announcements
Topic: any idea, suggestion on making a highscore on main menu?
Replies: 11
Views: 497

Re: any idea, suggestion on making a highscore on main menu?

The main menu is a screen just like any other. You can either edit it to add a field like `text "High score: [persistent.high_score]"`, or if you have a small `screen high_score()` you can include it as a block in main_menu with the `use` statement. See https://www.renpy.org/doc/html/scre...
by Mjhay
Sat Mar 06, 2021 10:57 am
Forum: Ren'Py Questions and Announcements
Topic: any idea, suggestion on making a highscore on main menu?
Replies: 11
Views: 497

Re: any idea, suggestion on making a highscore on main menu?

If you are talking about showing the highscore for a single application of the game (like on one pc), then you can save the highest score to persistent: default persistent.highscore = 0 default persistent.highscore_name = "" label end_of_quiz: ... if score > persistent.highscore: $ persis...
by Mjhay
Sat Mar 06, 2021 6:55 am
Forum: Ren'Py Questions and Announcements
Topic: any idea, suggestion on making a highscore on main menu?
Replies: 11
Views: 497

any idea, suggestion on making a highscore on main menu?

any idea, suggestion? i want to make a highscore on my educational quiz game.
i made a screen quiz result that has an average score together with the character name

it is possible to persistent the screen() and save it on the label in script ?

or any idea? need help :) dont know what to do
by Mjhay
Thu Feb 25, 2021 1:58 am
Forum: Ren'Py Questions and Announcements
Topic: any idea of making USER ACCOUNT in main menu on the game.?
Replies: 10
Views: 575

Re: any idea of making USER ACCOUNT in main menu on the game.?

Yes, just asking user name is a great idea :) https://www.renpy.org/doc/html/input.html use something to ask the player name before main screen define me = Character("[persistent.name]") label splashscreen: python: if not persistent.name: # if not already set, asks for name. If it is alre...
by Mjhay
Wed Feb 24, 2021 2:53 am
Forum: Ren'Py Questions and Announcements
Topic: create new game in main menu that delete all save game and persistent data
Replies: 10
Views: 573

Re: create new game in main menu that delete all save game and persistent data

oh i get it now.. hehe it all works an have a confirmation message . :)
thanks to all of you.
by Mjhay
Wed Feb 24, 2021 1:18 am
Forum: Ren'Py Questions and Announcements
Topic: create new game in main menu that delete all save game and persistent data
Replies: 10
Views: 573

Re: create new game in main menu that delete all save game and persistent data

oh it works ! salamat po :D para sa thesis on load game, the quick save up to the other page together with the persistent data are all deleted, it all works thanks to that. :) but except in the automatic save's part is not deleted, do you know about that? I tried the code seems to work for all save...