Search found 32 matches

by Yuvan raj
Wed Jul 21, 2021 9:42 am
Forum: Ren'Py Questions and Announcements
Topic: In a Screen, Calling a Label having variables changes the main game.[Solved]
Replies: 2
Views: 357

Re: In a Screen, Calling a Label having variables changes the main game.

... You could make a function to reset some variables and run it for close button. Something like init python: def reset_some_vars(): # all neccessary variables should be listed below as global ones global steve_character_imagebutton, diana_character_imagebutton, stacy_character_imagebutton, robin_...
by Yuvan raj
Wed Jul 21, 2021 4:39 am
Forum: Ren'Py Questions and Announcements
Topic: In a Screen, Calling a Label having variables changes the main game.[Solved]
Replies: 2
Views: 357

In a Screen, Calling a Label having variables changes the main game.[Solved]

Hello guys, I have some buttons(used to see stats) on the side of the screen. https://i.imgur.com/8rtr1BN.png?1 When I click one of the button. A big screen shows up with stats and so on. There is a close button in this screen. https://i.imgur.com/JW2HqyQ.png?1 When I click on the close button It hi...
by Yuvan raj
Thu Jul 08, 2021 9:40 am
Forum: Ren'Py Questions and Announcements
Topic: How to create OUTLINE for frame statement with custom background solid color?
Replies: 1
Views: 552

How to create OUTLINE for frame statement with custom background solid color?

Hello guys, I'm using frames in my screen. The default frame is a black box with orange outline. For one frame I want blue box with orange outline. This is the code I'm using. frame: xalign 0.5 ysize 280 vbox: imagebutton: ... And this is the result: https://i.imgur.com/AakYFKj.png I changed the fra...
by Yuvan raj
Tue Jun 01, 2021 1:37 am
Forum: Ren'Py Questions and Announcements
Topic: How to Change the viewport SCROLLBAR Width? [Solved]
Replies: 2
Views: 395

Re: How to Change the viewport SCROLLBAR Width?

Try it like viewport: scrollbars "vertical" vscrollbar_xsize 50 #<--- mousewheel True draggable True xalign 0.5 You can use style inspector (hit shift + i while hovering mouse pointer over an element of GUI) to see style properties you can adjust. This might be useful too - https://lemmasoft.renai....
by Yuvan raj
Mon May 31, 2021 3:58 pm
Forum: Ren'Py Questions and Announcements
Topic: How to Change the viewport SCROLLBAR Width? [Solved]
Replies: 2
Views: 395

How to Change the viewport SCROLLBAR Width? [Solved]

Hello, I'm a noob in renpy. I created this viewport and the vertical scrollbar on the side is very thin. I also plan on releasing the finished game on android and I have experience playing games in which the scrollbar was too thin that i could select it. This is my screen with viewport. https://i.im...
by Yuvan raj
Fri May 28, 2021 2:31 am
Forum: Ren'Py Questions and Announcements
Topic: modal True except one screen
Replies: 2
Views: 430

Re: modal True except one screen

One way I can think of is putting the menu on the right in its own screen, then having the menu screen inside the other one with use This is how it works for the navigation menu (for exemple, save and load screens both use the navigation menu). It would look like this: screen somemenu(): textbutton...
by Yuvan raj
Thu May 27, 2021 12:07 pm
Forum: Ren'Py Questions and Announcements
Topic: modal True except one screen
Replies: 2
Views: 430

modal True except one screen

Hello, I'm using a modal True statement on a screen so that the game won't proceed and other buttons won't be clicked. But I want to make an exception to the modal True statement. I want the screen containing the buttons 'my stats, characters stats, skip time, etc' to be clickable. This is what my g...
by Yuvan raj
Sun May 23, 2021 7:58 am
Forum: Ren'Py Questions and Announcements
Topic: Viewport vertical length very long. How to reduce?( Using images with zoom statement inside)
Replies: 6
Views: 609

Re: Viewport vertical scrolling area very long.

Try to declare all images, like image button_1_idle: "images/status_images/characters/1 character.png" zoom 0.35 and use those images for imagebuttons imagebutton idle 'button_1_idle': Declared all the images event the close button but still getting the same results. :( image close_idle: "images/gu...
by Yuvan raj
Sun May 23, 2021 6:22 am
Forum: Ren'Py Questions and Announcements
Topic: Viewport vertical length very long. How to reduce?( Using images with zoom statement inside)
Replies: 6
Views: 609

Re: Viewport vertical scrolling area very long.

This is the code for close-button, and wat about all other images inside a viewport? Also, try to play with the size of the frame frame: background Solid("#5a5c5c") xpos 20 ypos 18 xmaximum 1468 xminimum 1468 ymaximum 1045 yminimum 1045 (check the part with 'area' in sample code - https://www.renpy...
by Yuvan raj
Sun May 23, 2021 4:08 am
Forum: Ren'Py Questions and Announcements
Topic: Viewport vertical length very long. How to reduce?( Using images with zoom statement inside)
Replies: 6
Views: 609

Viewport vertical length very long. How to reduce?( Using images with zoom statement inside)

Hello, my viewport scrolling area is too long! The Thumb is very small and it just goes down so long. I have attached a picture of my problem and the code I use. I only want to show these 7 pictures now and maximum 15 pictures later. How to make my viewport to only go down till my last element that ...
by Yuvan raj
Thu May 20, 2021 5:10 am
Forum: Ren'Py Questions and Announcements
Topic: Screen inside a viewport shows error. [Solved(should use 'use' statement)]
Replies: 1
Views: 558

Screen inside a viewport shows error. [Solved(should use 'use' statement)]

Hello, I want to show a screen inside a viewport. But I get an error saying 'show' is not a valid keyword argument. Below is the code and below that are my images of what I want to accomplish. screen Green_button(): imagebutton auto "greenbutton_%s" xpos 20 ypos 20 action Show("Yellow_viewport") scr...
by Yuvan raj
Fri May 14, 2021 9:17 am
Forum: Ren'Py Questions and Announcements
Topic: How to remove text outline for specific texts?
Replies: 1
Views: 770

How to remove text outline for specific texts?

Hello, I have outlines for the texts in my VN using the code: define gui.text_outlines = [ (2,"#000000",0,0) ] But I want to remove the text outline for some texts which I'm using in a screen. This below is my screen code: screen statusbuttons(): vbox: xalign 0.907 yalign 0.64 text "Money" text "Ene...
by Yuvan raj
Tue May 11, 2021 1:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Want my images, videos to appear in a particular size and place on the screen!
Replies: 5
Views: 687

Re: Want my images, videos to appear in a particular size and place on the screen!

How do you show these images? What positional arguments do you provide to them? I typed this code in the options.rpy ################################################-----Layers-----################################################### define config.layers = [ 'master', 'transient', 'viewport' ,'scree...
by Yuvan raj
Tue May 11, 2021 11:27 am
Forum: Ren'Py Questions and Announcements
Topic: Want my images, videos to appear in a particular size and place on the screen!
Replies: 5
Views: 687

Re: Want my images, videos to appear in a particular size and place on the screen!

You can create a separate layer for thise images and clip it to fit your need. https://www.renpy.org/doc/html/config.html?highlight=layer#var-config.layer_clipping https://www.renpy.org/doc/html/config.html?highlight=layer#var-config.layers Thank you for the reply! I did as you comment and It works...
by Yuvan raj
Tue May 11, 2021 3:06 am
Forum: Ren'Py Questions and Announcements
Topic: Want my images, videos to appear in a particular size and place on the screen!
Replies: 5
Views: 687

Want my images, videos to appear in a particular size and place on the screen!

Hello, I'm trying to create a visual novel in which the displayables should only appear on a particular place and size on the screen. Like the picture below, https://i.imgur.com/Zf6WCdq.png?1 I want my images to appear only inside the orange frame. Below and in the sides I want to create imagemaps f...