Search found 196 matches

by neometalero
Wed Mar 20, 2024 5:36 pm
Forum: Ren'Py Questions and Announcements
Topic: Label as main menu background
Replies: 5
Views: 202

Re: Label as main menu background

a) Use timers that change varable controlling current image. b) CDD which change rendered image based on elapsed time c) Potentially ATL animation which has a funtcion statement changing child of transform. Right now Im triying to do it this way, as an animated image image MMCarrusAsImgSimple: (&qu...
by neometalero
Wed Mar 20, 2024 10:22 am
Forum: Ren'Py Questions and Announcements
Topic: Label as main menu background
Replies: 5
Views: 202

Re: Label as main menu background

If main_menu label exist, it will be executed, instead of showing the main menu screen. Note that you will be responsible for shwing and handling all menu screens in this case. An alternative approach is to convert you code into a screen and use that instead. How can I write this in screen language...
by neometalero
Tue Mar 19, 2024 6:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Label as main menu background
Replies: 5
Views: 202

Label as main menu background

I have this label on my script file, basically it works as a gallery of pictures with some transitions added to it. I want to put this as the main menu background. Any idea on how I could do this? label menuCarruselTest: $numPoster=renpy.random.randint(1,cantImgMainMenu) #Si es el que acaba de salir...
by neometalero
Sat Jan 27, 2024 11:24 am
Forum: Ren'Py Questions and Announcements
Topic: Line Breaks
Replies: 9
Views: 11654

Re: Line Breaks

Sorry for reviving a 16 (!) -year old thread, but "\n" doesn't in fact appear to work inside a custom text tag...I had to resort to a function and ugly syntax to accomplish this. It works. Here https://www.renpy.org/wiki/renpy/doc/FAQ is the official documentation on that Be sure to write...
by neometalero
Tue May 16, 2023 8:32 pm
Forum: Ren'Py Cookbook
Topic: Accessibility brightness and contrast options
Replies: 6
Views: 1913

Re: Accessibility brightness and contrast options

Imperf3kt wrote: Tue May 16, 2023 7:40 pm You could always try Ren'Pys built in accessibility menu

Code: Select all

textbutton "accessibility" action Preference("accessibility menu")
Im not familiar with that menu, but I will give it a try as well. Tks!
by neometalero
Tue May 16, 2023 8:32 pm
Forum: Ren'Py Cookbook
Topic: Accessibility brightness and contrast options
Replies: 6
Views: 1913

Re: Accessibility brightness and contrast options

You're not using the last version of Ren'Py. That worked, tks! I put it in the preferences menu and worked great. I leave the code here in case anyone else is having troubles. screen preferences(): tag menu if renpy.mobile: $ cols = 2 else: $ cols = 4 use game_menu(_("Preferences"), scrol...
by neometalero
Tue May 16, 2023 3:39 pm
Forum: Ren'Py Cookbook
Topic: Accessibility brightness and contrast options
Replies: 6
Views: 1913

Re: Accessibility brightness and contrast options

This is some code allowing the players to customize the brightness and contrast of the game. Be warned that it forbids you the use of the camera and show-layer-at statements, and that passing excessive values will make the screen entirely black, white or gray and in that case you won't be able to c...
by neometalero
Tue May 16, 2023 10:57 am
Forum: Ren'Py Questions and Announcements
Topic: can screen be disable temporary?
Replies: 9
Views: 1788

Re: can screen be disable temporary?

edouardlicn wrote: Thu May 09, 2013 5:08 am Hi

I want to disable some screen like save in game procession,not disable a key.How can I make it?
I was having the same trouble and this worked. Maybe it can help you?

viewtopic.php?f=8&t=66591&p=560451#p560451
by neometalero
Wed May 10, 2023 7:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Limit the Saves (Resident Evil Style)
Replies: 11
Views: 315

Re: Limit the Saves (Resident Evil Style)

Works for me: https://i.imgur.com/hLdeQTW.gif You probably did something wrong. There are all changes I did to a new project: # Button code: button: if title == "Save": action [SetVariable("saves_left", saves_left - 1), FileSave(slot)] else: action FileLoad(slot) if title == &qu...
by neometalero
Wed May 10, 2023 6:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Limit the Saves (Resident Evil Style)
Replies: 11
Views: 315

Re: Limit the Saves (Resident Evil Style)

When I run that code is not limiting the saves.
by neometalero
Wed May 10, 2023 6:22 pm
Forum: Ren'Py Questions and Announcements
Topic: Limit the Saves (Resident Evil Style)
Replies: 11
Views: 315

Re: Limit the Saves (Resident Evil Style)

You should never have a python code with side effects in screens. It is like screens 101. I am actually surprised that it doesn't work, because it should work too well and you should quickly get negative saves. It is possible that you have defined saves_left wrong. It should be something like defau...
by neometalero
Wed May 10, 2023 5:52 pm
Forum: Ren'Py Questions and Announcements
Topic: Limit the Saves (Resident Evil Style)
Replies: 11
Views: 315

Re: Limit the Saves (Resident Evil Style)

I tried this button: action FileAction(slot) # ↑ That part is there by default if title == "Save": # reuse sacreen argument to avoid a bunch of python code determining current screen sensitive saves_left > 0 # saves_left is your variable where you store amount of saves $saves_left=saves_le...
by neometalero
Wed May 10, 2023 5:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Limit the Saves (Resident Evil Style)
Replies: 11
Views: 315

Re: Limit the Saves (Resident Evil Style)

If you are using default GUI, you need to modify file_slots screen and change the save buttons to be something like that: button: action FileAction(slot) # ↑ That part is there by default if title == "Save": # reuse sacreen argument to avoid a bunch of python code determining current scre...
by neometalero
Wed May 10, 2023 4:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Limit the Saves (Resident Evil Style)
Replies: 11
Views: 315

Re: Limit the Saves (Resident Evil Style)

How can I disable/enable those screen? Im not finding any usefull post about that.
by neometalero
Wed May 10, 2023 4:13 pm
Forum: Ren'Py Questions and Announcements
Topic: Limit the Saves (Resident Evil Style)
Replies: 11
Views: 315

Limit the Saves (Resident Evil Style)

I want the player to have to spend an item to be able to save the game. Like in Resident Evil, that you need to spend ink in order to save. Any idea on how I can do that? :|