Search found 3789 matches
- Thu Sep 21, 2023 9:05 am
- Forum: Ren'Py Questions and Announcements
- Topic: renpy.get argument for buttons??
- Replies: 2
- Views: 511
Re: renpy.get argument for buttons??
# In your screen, create a ScreenVariable, we'll call this 'myVar', but you can call it almost anything you like. screen myScreen(): # Give myVar a default state, in this case I'll use a boolean, True/False. default myVar = False # In your button, set the action to change the variable 'myVar', this...
- Tue Sep 19, 2023 3:43 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Unresponsive image buttons [SOLVED]
- Replies: 14
- Views: 5078
Re: Unresponsive image buttons
In addition to the above, your indentation is not right, you are using 8 spaces, but you should be using 4 Does incorrect spacing prevent the code from functioning? That depends. https://www.renpy.org/doc/html/language_basics.html#indentation-and-blocks Indentation is very important to Ren'Py, and ...
- Tue Sep 19, 2023 4:12 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Randomizing after Iterating Names in a List
- Replies: 4
- Views: 573
Re: Randomizing after Iterating Names in a List
An easier method may be to run through the list, then one you've used a name from the list, add it to a set and remove it from the list.
After that, you just need some logic that says if your list is empty, use the set instead.
After that, you just need some logic that says if your list is empty, use the set instead.
- Tue Sep 19, 2023 4:06 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Renpy scrolls throught the whole code after switching between screen and a label '> '
- Replies: 3
- Views: 517
Re: Renpy scrolls throught the whole code after switching between screen and a label '> '
Your timer screen is activating a call which calls other calls on repeat.
I assume you are burying yourself deep in the call stack, this may not be the best way to accomplish what you're trying to do.
https://www.renpy.org/doc/html/label.ht ... -statement
I assume you are burying yourself deep in the call stack, this may not be the best way to accomplish what you're trying to do.
https://www.renpy.org/doc/html/label.ht ... -statement
- Tue Sep 19, 2023 3:57 am
- Forum: Ren'Py Questions and Announcements
- Topic: Unresponsive image buttons [SOLVED]
- Replies: 14
- Views: 5078
Re: Unresponsive image buttons
In addition to the above, your indentation is not right, you are using 8 spaces, but you should be using 4 Here's an example of one way to use imagebuttons screen myScreen(): modal True fixed: spacing 10 imagebutton: auto "gui/myimage_1_%s.png" focus_mask True hovered <hovered action> unho...
- Sat Sep 16, 2023 3:53 am
- Forum: Ren'Py Questions and Announcements
- Topic: Options for getting data into a game
- Replies: 1
- Views: 489
Re: Options for getting data into a game
You may want to make use of a class
You already state your NPCs are using classes, so just leverage those?
You already state your NPCs are using classes, so just leverage those?
- Sat Sep 16, 2023 3:40 am
- Forum: Ren'Py Questions and Announcements
- Topic: if statement help
- Replies: 4
- Views: 550
Re: if statement help
I would make some slight adjustments. menu: "Try the front door of the store?": if pick: #== True is not needed here. '== True' essentially says if True is True if sneak >= 10: jump store_breakin else: jump more_skills "Maybe I can find an open window.": if wopen: if sneak >= 8: ...
- Sat Sep 16, 2023 3:28 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Request/Help] Is There a Way To Highlight Text Using Text Tags?
- Replies: 2
- Views: 602
Re: [Request/Help] Is There a Way To Highlight Text Using Text Tags?
You can always generate your text as an image then place that in your screen/say window etc using a combination of maybe a frame, https://www.renpy.org/doc/html/screens.html#frame, Text() https://www.renpy.org/doc/html/text.html#text and other things. Or, a less ideal way (because you may run into i...
- Tue Sep 12, 2023 7:59 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Opening a screen with a move transition [SOLVED]
- Replies: 2
- Views: 1278
Re: Opening a screen with a move transition
Something like PushMove can be applied to the show / call / hide statements, or any other transition really. https://www.renpy.org/doc/html/transitions.html#PushMove For example, as part of a button: action Show("myScreen", PushMove(0.2, mode="pushleft")) Will make the screen be ...
- Mon Sep 11, 2023 6:41 am
- Forum: Ren'Py Questions and Announcements
- Topic: Jump to Different Label When Pressing Different Key
- Replies: 2
- Views: 1235
Re: Jump to Different Label When Pressing Different Key
the key 'h' is already in use for hiding the overlay.
Does this work for you if you use a different key?
Does this work for you if you use a different key?
- Thu Sep 07, 2023 9:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] list index out of range
- Replies: 1
- Views: 1029
Re: list index out of range
I managed to fix this, but I also made a lot of other changes at the same time, so I don't remember what I did to fix it.
The issue was being caused by this line
Or more specifically, by actions that happen after that line returns.
The issue was being caused by this line
Code: Select all
textbutton _("Continue") action Return()
- Wed Sep 06, 2023 10:53 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] list index out of range
- Replies: 1
- Views: 1029
[solved] list index out of range
I am trying to make a hangman style of game. I originally had it working well, but I've recently made some changes and added a whole bunch more words for the randomizer to choose from and now whenever I exit out of the minigame and come back in, it throws an error. I'm sorry, but an uncaught excepti...
- Wed Sep 06, 2023 3:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: SetVariable issue, variable not found
- Replies: 11
- Views: 1100
Re: SetVariable issue, variable not found
Have you ensured the variable is assigned before you try to use it with this code?
- Fri Sep 01, 2023 11:57 am
- Forum: Ren'Py Questions and Announcements
- Topic: Wrong alignment for hbox [SOLVED]
- Replies: 3
- Views: 597
Re: Wrong alignment for hbox
you can use hbox and vbox in conjunction with each other to achieve what you need.
To ensure text doesn't move, you can specify an xsize and an xmamimum, same for ysize and ymaximum if needed.
To ensure text doesn't move, you can specify an xsize and an xmamimum, same for ysize and ymaximum if needed.
- Sun Aug 27, 2023 4:08 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [CLOSED] "Android App Bundle is signed with the wrong key" error when trying to upload .abb to Google Play
- Replies: 1
- Views: 526
Re: [CLOSED] "Android App Bundle is signed with the wrong key" error when trying to upload .abb to Google Play
Don't be so quick to assume you won't get help, we happen to have the answer for you here
viewtopic.php?f=8&t=66547&start=15#p560837
viewtopic.php?f=8&t=66547&start=15#p560837