Search found 3775 matches

by Imperf3kt
Mon Sep 25, 2023 8:51 am
Forum: Ren'Py Questions and Announcements
Topic: Requesting Guidance on Styling Ren'Py Text Buttons Using Styles
Replies: 2
Views: 812

Re: Requesting Guidance on Styling Ren'Py Text Buttons Using Styles

add a style_prefix to your element
for example:

Code: Select all

screen myScreen():
    vbox:
        style_prefix "crazyFont"
        
        text "Your text goes here"

style crazyFont:
    size 200
by Imperf3kt
Thu Sep 21, 2023 9:05 am
Forum: Ren'Py Questions and Announcements
Topic: renpy.get argument for buttons??
Replies: 2
Views: 367

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...
by Imperf3kt
Tue Sep 19, 2023 3:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Unresponsive image buttons [SOLVED]
Replies: 14
Views: 2839

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 ...
by Imperf3kt
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: 426

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.
by Imperf3kt
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: 393

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
by Imperf3kt
Tue Sep 19, 2023 3:57 am
Forum: Ren'Py Questions and Announcements
Topic: Unresponsive image buttons [SOLVED]
Replies: 14
Views: 2839

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...
by Imperf3kt
Sat Sep 16, 2023 3:53 am
Forum: Ren'Py Questions and Announcements
Topic: Options for getting data into a game
Replies: 1
Views: 376

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?
by Imperf3kt
Sat Sep 16, 2023 3:40 am
Forum: Ren'Py Questions and Announcements
Topic: if statement help
Replies: 4
Views: 391

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: ...
by Imperf3kt
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: 459

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...
by Imperf3kt
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: 741

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 ...
by Imperf3kt
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: 748

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?
by Imperf3kt
Thu Sep 07, 2023 9:19 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] list index out of range
Replies: 1
Views: 427

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

Code: Select all

textbutton _("Continue") action Return()
Or more specifically, by actions that happen after that line returns.
by Imperf3kt
Wed Sep 06, 2023 10:53 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] list index out of range
Replies: 1
Views: 427

[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...
by Imperf3kt
Wed Sep 06, 2023 3:10 am
Forum: Ren'Py Questions and Announcements
Topic: SetVariable issue, variable not found
Replies: 11
Views: 859

Re: SetVariable issue, variable not found

Have you ensured the variable is assigned before you try to use it with this code?
by Imperf3kt
Fri Sep 01, 2023 11:57 am
Forum: Ren'Py Questions and Announcements
Topic: Wrong alignment for hbox [SOLVED]
Replies: 3
Views: 448

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.