Search found 84 matches

by laure44
Mon Dec 11, 2023 9:08 pm
Forum: Ren'Py Questions and Announcements
Topic: Jumping or Calling
Replies: 2
Views: 1537

Re: Jumping or Calling

By default, the game will start by jumping to label start . https://www.renpy.org/doc/html/label.html#special-labels So you could do one of the following: 1. Move label start to your other file, day1.rpy 2. Keep label start in start.rpy, and use the jump statement to another label like so: label sta...
by laure44
Tue Oct 03, 2023 9:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Imagebutton hover shows in wrong place [SOLVED]
Replies: 1
Views: 212

Re: Imagebutton hover shows in wrong place

Two different things you could do: 1. Use focus_mask property. This will make it so that only non transparent pixels will cause the button to be focused (This might cause performance issues in some cases). imagebutton: focus_mask True 2. Instead of resizing your images as you did, use xcenter and yc...
by laure44
Sun Oct 01, 2023 2:56 pm
Forum: Ren'Py Questions and Announcements
Topic: How to lock access to certain buttons on screens [SOLVED]
Replies: 2
Views: 199

Re: How to lock access to certain buttons on screens

screen char_screens: imagemap: idle "images/screens/char3" + str(char3_unlock) + ".png" hotspot (18, 3, 390, 480): if char3_unlock == 0: sensitive False action Show("char3_stats_screen")] # You don't need Hide here (Hide will only work for hiding screens)
by laure44
Thu Sep 28, 2023 7:06 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]How to delete item from list, without knowing index or name?
Replies: 2
Views: 221

Re: How to delete item from list, without knowing index or name?

Try this:

Code: Select all

textbutton "X":
    action RemoveFromSet(new_characters, c)
by laure44
Sat Sep 23, 2023 3:38 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Having an infinite loop exception when running day/night cycle
Replies: 8
Views: 758

Re: Having an infinite loop exception when running day/night cycle

Look at these parts of your code: label mainloop: while gamerunning: if time == 1: call morning elif time == 2: call day elif time == 3: call evening elif time == 4: call night elif time == 5: call daychange call nextday else: $ gamerunning = False return and label morning: if location == "jame...
by laure44
Fri Sep 22, 2023 5:41 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Using a Character's Layeredimage in a Screen
Replies: 2
Views: 276

Re: Using a Character's Layeredimage in a Screen

Your screen will try to look for the variable Kotori, which obviously does not exist.

Try this instead:

Code: Select all

add "Kotori"
by laure44
Thu Sep 14, 2023 6:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Different Default names per gender
Replies: 1
Views: 238

Re: Different Default names per gender

In Python, you should use == for equality comparison, not = which is used for variable assignment.

Code: Select all

if pronoun1 == "She":
by laure44
Sun Jul 30, 2023 4:37 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Error when displaying Live2D on a screen: NoneType object is not iterable
Replies: 4
Views: 494

Re: Error when displaying Live2D on a screen: NoneType object is not iterable

Adding a Displayable to a screen is not done using the keyword "image", you have to use "add". add Live2D("live2d/Chocojaxv2Default") I've tried that too, still the same error with NoneType object is not iterable. You will need to define your Live2D displayable first, ...
by laure44
Mon Jul 03, 2023 11:56 am
Forum: Ren'Py Questions and Announcements
Topic: How to add 'if' after 'menu:'so that an unnecessary choice does not appear if the conditions are not met?
Replies: 5
Views: 297

Re: How to add 'if' after 'menu:'so that an unnecessary choice does not appear if the conditions are not met?

See this: https://www.renpy.org/doc/html/menus.html#in-game-menus Sorry, I don't understand English very well and without an exact explanation I won't be able to understand what I need to do to make it work as I need it? I'll quote the interesting part from the documentation then: menu: "Go le...
by laure44
Tue Apr 11, 2023 10:23 pm
Forum: Ren'Py Questions and Announcements
Topic: help countdown code work
Replies: 1
Views: 289

Re: help countdown code work

You can use timer inside your screen.

Code: Select all

screen countdown():

    default countdown = 5

    if countdown > 0:
        timer 1 repeat True action SetScreenVariable("countdown", countdown-1)

    text "[countdown]" xpos 0.5 ypos 0.5
by laure44
Fri Mar 17, 2023 11:15 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Could not find label "start"—but it *does* exist!
Replies: 18
Views: 5863

Re: [SOLVED] Could not find label "start"—but it *does* exist!

So, this is a bit of an interesting situation. I am having the exact same problem you are having with the difference being in the apparent reason why the issue is being caused. In short, if I rename the script file in the game folder, I get the error. If I move the start label to a new .rpy file an...
by laure44
Sun Mar 12, 2023 10:34 pm
Forum: Ren'Py Questions and Announcements
Topic: imagebuttons with conditional statements
Replies: 2
Views: 342

Re: imagebuttons with conditional statements

Remove the quotation marks :)

Code: Select all

If(money>4, SetVariable("unlocked", True))
by laure44
Tue Feb 28, 2023 7:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Edit Text in Imagebutton?? SOLVED
Replies: 4
Views: 439

Re: Edit Text in Imagebutton??

The frame is the culprit here. You can set its background to None to make it disappear completely. frame: background None xalign 0.5 yalign 0.5 xpadding 30 ypadding 30 However, if you don't want a background at all, the best would actually be to remove the frame and only keep its child. Like so: sc...
by laure44
Mon Feb 27, 2023 2:42 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make a "proper" splash screen :)
Replies: 10
Views: 754

Re: How to make a "proper" splash screen :)

RewindTheGame wrote: Mon Feb 27, 2023 12:09 pm
Unless I misunderstand what you want (in which case I apologize), presplash is exactly what you're looking for, not splashscreen. Do you have some kind of demo of your game to share just to check what is going on?