Search found 165 matches

by MaydohMaydoh
Wed Jun 10, 2020 4:13 pm
Forum: Ren'Py Questions and Announcements
Topic: Weird inconsistent error when displaying information with square brackets
Replies: 12
Views: 693

Re: Weird inconsistent error when displaying information with square brackets

Renpy creates defined variables during the init stage and defaulted variables when the game starts.

Also from what I can see, your problem is caused by the character definition, not the interpolation. Dynamic shouldn't be set to True.
by MaydohMaydoh
Sat Jun 06, 2020 9:30 am
Forum: Ren'Py Questions and Announcements
Topic: Bar value not updating (Solved)
Replies: 4
Views: 294

Re: Bar value not updating

Works for me when accessing the attributes directly. screen mc_hp_screen: vbar value FieldValue(player, "mc_hp", 100): xalign 1 yalign 0.008 xmaximum 70 ymaximum 65 left_bar Frame("gui/hearthealth0.png", 100, 0) right_bar Frame("gui/hearthealth.png", 100, 0) text "...
by MaydohMaydoh
Sun May 31, 2020 5:32 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]How to make a textbutton that shows an image full screen?
Replies: 4
Views: 297

Re: How to make a textbutton that shows an image full screen?

The screen name given to the show action should be a string
action Show('imageac', ac_pic)
by MaydohMaydoh
Sat May 30, 2020 1:03 pm
Forum: Ren'Py Questions and Announcements
Topic: How to center text in a textbutton?
Replies: 12
Views: 649

Re: How to center text in a textbutton?

Like imperf3kt said, the button size isn't the same size as the image. You need to change the size using xysize property. Also text_align is wrong. Textbutton itself doesn't take text_align property. It also only positions the text within the text displayable not the container. What you want is to g...
by MaydohMaydoh
Thu May 28, 2020 8:23 am
Forum: Ren'Py Questions and Announcements
Topic: Icon stuck as ren'py default? (SOLVED)
Replies: 12
Views: 976

Re: Icon stuck as ren'py default?

If you're talking about the exe icon and stuff, you need to include a .ico and/or .icns file with the game.
https://www.renpy.org/doc/html/build.html#special-files
by MaydohMaydoh
Wed May 27, 2020 4:16 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to get the textbox to remain visible during sprite transitions??
Replies: 9
Views: 954

Re: [SOLVED] How to get the textbox to remain visible during sprite transitions??

Just gonna say that adding "window auto" to the start of your script would stop the textbox disappearing. window auto This enables automatic management of the window. The window is shown before statements listed in config.window_auto_show – by default, say statements. The window is hidden ...
by MaydohMaydoh
Sun May 24, 2020 10:22 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]question about rotate transform
Replies: 4
Views: 355

Re: question about rotate transform

Can't seem to reproduce this problem, but the only thing I can think of trying is increasing a before running the transform:

Code: Select all

transform turnit:
    linear 1 rotate a
    
$ a += 36
show image at turnit
Whether that would work or not, I have no idea.
by MaydohMaydoh
Fri May 22, 2020 5:54 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] NVL menu is showing up for the ADV menu as well?
Replies: 5
Views: 537

Re: NVL menu is showing up for the ADV menu as well?

I would think what Gas first said is right. Check to make sure you don't have "define menu = nvl_menu" somewhere in your code.
by MaydohMaydoh
Thu May 21, 2020 1:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Textbutton disappears during call screen.
Replies: 4
Views: 357

Re: Textbutton disappears during call screen.

You're showing the living room screen after the inventory button screen, so living room is being shown on top of it. That would be why it's still clickable. I would think giving the inventory button screen a zorder should fix it.
by MaydohMaydoh
Sun May 17, 2020 4:53 am
Forum: Ren'Py Questions and Announcements
Topic: [solved]Showing countries' info by clicking on cities [python list and object/classes]
Replies: 8
Views: 664

Re: Showing countries' info by clicking on cities [python list and object/classes]

I guess you can't put the for loop inside the button. for q in TL_GUO_loc: if q.IsActive: for n in TL_GUO: if n.ID == q.ID: $ act = SetVariable('nation_info', n) button: xpos q.x ypos q.y text q.name color "#000000" action act
by MaydohMaydoh
Sat May 16, 2020 8:45 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]Showing countries' info by clicking on cities [python list and object/classes]
Replies: 8
Views: 664

Re: Showing countries' info by clicking on cities [python list and object/classes]

For the way you have it currently set up, you could use nested loops to check the IDs against each other and then pass the nation object to a new screen. screen guo_map(): for q in TL_GUO_loc: if q.IsActive: button: xpos q.x ypos q.y text q.name color "#000000" for n in TL_GUO: if n.ID == ...
by MaydohMaydoh
Sat May 16, 2020 4:40 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] marking previously made choices - but not persistent
Replies: 7
Views: 2053

Re: marking previously made choices - but not persistent

default choice_tracker = [] init python: def menu(items): rv = renpy.display_menu(items) marker = () for item_text, choice_obj in items: ## check if choice is not say and has been chosen if choice_obj and rv == choice_obj.value: marker = (choice_obj.location, choice_obj.value) ## add choice stuff t...
by MaydohMaydoh
Thu May 14, 2020 11:02 am
Forum: Ren'Py Questions and Announcements
Topic: How to fade music that is playing when a save is loaded?
Replies: 12
Views: 660

Re: How to fade music that is playing when a save is loaded?

If you save the currently playing song to the save json when you save the game and pass the save name to a persistent variable or something when loading, you could call the song to be played from the after_load label. def SaveData(d): d['current_music'] = renpy.music.get_playing(channel='music') con...
by MaydohMaydoh
Mon May 11, 2020 6:57 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Imagebutton and show and hide screen on background
Replies: 5
Views: 426

Re: Imagebutton and show and hide screen on background

You probably want to use the SetVariable action to set the variable and the Hide action to hide the screen. default castlekey = False screen hiddenitem(): imagebutton: idle 'castlekey.png' pos (840, 367) focus_mask True action [ SetVariable('castlekey', True), Hide('hiddenitem') ] label start: show ...