Loading game become Saving game

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
MisterHarold
Regular
Posts: 51
Joined: Tue Jul 17, 2018 10:32 am
Location: Philippines
Contact:

Loading game become Saving game

#1 Post by MisterHarold »

Hello. I have a question about the load() screen.

When I use the load screen on another screen it saves games instead.

Code: Select all

screen load2nd():
	 use load
For my game, I want to be able to use two different load screens. One for the main menu(load) and one for the quick menu while playing(load2nd). Is it possible? Please help.
Last edited by MisterHarold on Sun Feb 24, 2019 5:13 am, edited 1 time in total.

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Loading game become Saving game

#2 Post by isobellesophia »

You mean, you wilk add a another load screen at the quick menu instead of a quick load?

Put this then. (quick menu in screens.rpy)

Code: Select all

textbutton _("Load") action ShowMenu("load")
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
Alex
Lemma-Class Veteran
Posts: 3098
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Loading game become Saving game

#3 Post by Alex »

MisterHarold wrote: Sun Feb 24, 2019 4:51 am ...When I use the load screen on another screen it saves games instead. ...
This happened 'cause default save/load screens use FileAction that '"Does the right thing" with the file. This means loading it if the load screen is showing (current screen is named "load"), and saving otherwise.'
You need to create your own load screen (you can copy/paste code from the original load screen) and use FileLoad action in it.

https://www.renpy.org/doc/html/screen_special.html#load
https://www.renpy.org/doc/html/screen_a ... le-actions

MisterHarold
Regular
Posts: 51
Joined: Tue Jul 17, 2018 10:32 am
Location: Philippines
Contact:

Re: Loading game become Saving game

#4 Post by MisterHarold »

It works. Thanks for the help!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], GetOutOfMyLab, Google [Bot]