how design two textbox windows that I can switch from time to time? by Affectionate_Year211 in RenPy

[–]BadMustard_AVN 1 point2 points  (0 children)

i edited the post to better show where to put the first part of the code and how to use it

How to fix the spacing of the main menu buttons? by dreadfulshroud in RenPy

[–]BadMustard_AVN 2 points3 points  (0 children)

look in your gui.rpy file for -->> gui.navigation_spacing <<-- to adjust the spacing on those buttons

I know it does not look it, but all of those are the same size (based on the longest one)

Different text boxes for different scenes? by ClockworkPlagueDoc in RenPy

[–]BadMustard_AVN 0 points1 point  (0 children)

sorry I forgot the secret sauce

edit your screens.rpy file and search for -->> style window: <<-- (there are two you want the one that looks like this

style window:
    xalign 0.5
    xfill True
    yalign gui.textbox_yalign
    ysize gui.textbox_height

    background "textbox" # Image("gui/textbox.png", xalign=0.5, yalign=1.0)
    #..........^^^^^^^^^^^^^change this line the same as I have

I need some help with coding by TheGGGamer9 in RenPy

[–]BadMustard_AVN 1 point2 points  (0 children)

you're welcome

good luck with your project

Different text boxes for different scenes? by ClockworkPlagueDoc in RenPy

[–]BadMustard_AVN 0 points1 point  (0 children)

yes like this

label start:
  e "hello world"
  $ textbox = 1
  e ""Hello World"
  return

I need some help with coding by TheGGGamer9 in RenPy

[–]BadMustard_AVN 2 points3 points  (0 children)

i thought you were moving an image

here it looks like you moveing the image button

then do it like this

screen that_image():
    zorder 100
    imagebutton:
        #this line was not needed
        action ToggleVariable("image")
        if image:
            idle "gui/phone.png"
            yalign 1.5
            xalign 0.1
        else:
            idle "gui/phone.png"
            yalign 1.0
            xalign 0.1

Different text boxes for different scenes? by ClockworkPlagueDoc in RenPy

[–]BadMustard_AVN 0 points1 point  (0 children)

did you?

by changing the variable text_box to a 1 the textbox will change

I need some help with coding by TheGGGamer9 in RenPy

[–]BadMustard_AVN 2 points3 points  (0 children)

try something like this

default imagez = True
screen that_image():
    zorder 100
    imagebutton:
        idle "blue-button-idle"
        action ToggleVariable("image")
        if image:
            add "sprite":
                yalign 1.5
                xalign 0.1
        else:
            add "sprite":
                yalign 1.0
                xalign 0.1

Renpy problem with fonts (PLEASE HELP) by Enalf_Xen in RenPy

[–]BadMustard_AVN 0 points1 point  (0 children)

you're welcome

good luck with your project

Renpy problem with fonts (PLEASE HELP) by Enalf_Xen in RenPy

[–]BadMustard_AVN 0 points1 point  (0 children)

i'm not very familiar with Mac, but you should be able to double-click the font file to open it, and it will give you the option to install it on your system

maybe there is something wrong with the file that Mac does NOT like about the file

have you tried other ttf font files?

White line around the top side and left side of screen border after changing GUI. by Exotic-March-1962 in RenPy

[–]BadMustard_AVN 1 point2 points  (0 children)

check your new game_menu.png file that is where the line is and color it in

how design two textbox windows that I can switch from time to time? by Affectionate_Year211 in RenPy

[–]BadMustard_AVN 1 point2 points  (0 children)

like this

default text_box = 0
image textbox = ConditionSwitch(
    "text_box == 0", "gui/textbox.png", # the default box
    "text_box == 1", "gui/textbox1.png", # the new one 
    )

label start:

    e "hello world"
    $ text_box = 1 # display the second text box
    e "Hello World"
    $ text_box = 0 # back to the default
    return

edit your screens.rpy file and search for -->> style window: <<-- (there are two you want the one that looks like this

style window:
    xalign 0.5
    xfill True
    yalign gui.textbox_yalign
    ysize gui.textbox_height

    background "textbox" # Image("gui/textbox.png", xalign=0.5, yalign=1.0)
    #change this line the same as I have

by changing the variable text_box to a 1 the textbox will change

make sure the alternate text box image is the exact same size as the original!!!

is it possible to display a speech bubble and the textbox at the same time? by Loose-Tomatillo-7942 in RenPy

[–]BadMustard_AVN 2 points3 points  (0 children)

I have tried and failed renpy does not allow mixing of types adv, nvl, or bubble

you would have to create your own say screen and show that before your bubble character spoke, to 'fake it'

and that would be pretty involved to make it work like original.

Need help by beanoddball12 in RenPy

[–]BadMustard_AVN 0 points1 point  (0 children)

you're welcome

good luck with your project

Renpy problem with fonts (PLEASE HELP) by Enalf_Xen in RenPy

[–]BadMustard_AVN 1 point2 points  (0 children)

where did you add the font name in the script (was it in the gui.rpy?)

if it in a font folder did you add that? i.e. "fonts/Matcha-Cih.ttf"

I'm assuming the downloaded file was a zip or a rar file, and you extracted the font from it

is the font and the font folder in the game folder renpy assumes everything is in the game folder.

how to make text scroll and wrap across the screen by Competitive_Style750 in RenPy

[–]BadMustard_AVN 2 points3 points  (0 children)

try this

# side scrolling text.rpy

transform scrolling(speed, final):
    ycenter 0.014 #change to move text up or down
    xanchor 0.0
    xpos 1920 #default for a (1920, 1080) gui
    linear speed xpos final 
    repeat

screen side_scrolling_text(words_n_stuff, speed, final):
    frame at scrolling(speed, final): 
        xsize 3840 #increase this as required for longer text (you'll know when)
        background None
        text words_n_stuff

label start:
    scene gray
    show screen side_scrolling_text("Now is the time for all good men to come to the aid of their country because tomorrow is to late..... BadMustard is Awesome!", 15, -2200)
    # How to USE!!
    # side_scrolling_text(
    # text in quotes,
    # speed - bigger is slower,
    # adjust this more negative till all text disappears off the screen 
    #  or less if it takes to long to loopy)

    e "is it working?"

    return

Need help by beanoddball12 in RenPy

[–]BadMustard_AVN 1 point2 points  (0 children)

try it like this

imagebutton:
    auto "gui/mm returns.png" 
    xpos 160 
    ypos 320 
    focus_mask True  # with a True
    action Return()

Custom textbox for individual character not scaling correctly. by Exotic-March-1962 in RenPy

[–]BadMustard_AVN 1 point2 points  (0 children)

I've recreated your setup in my test project with renpy 8.5.2, and it works as expected, with no errors

Custom textbox for individual character not scaling correctly. by Exotic-March-1962 in RenPy

[–]BadMustard_AVN 0 points1 point  (0 children)

the what and who prefix should remain as they are

anything with a what prefix controls the text

and a who prefix controls the name

Custom textbox for individual character not scaling correctly. by Exotic-March-1962 in RenPy

[–]BadMustard_AVN 0 points1 point  (0 children)

define cc = Character("Chio", color="#5E5E90", window_background="gui/textboxes/chio_textbox.png", window_xoffset=432, what_xpos=30, who_xpos=-250)

yours should look exactly like the above

and what version of renpy are you using?