Search found 84 matches

by laure44
Wed Oct 05, 2022 2:51 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Displaying vertical image with movement
Replies: 2
Views: 339

Re: Displaying vertical image with movement

You can easily do that with the camera statement. label start: camera: xalign 0.5 zoom 0.5 # adapt this zoom value to make sure the width of the image fully shows yalign 1.0 # 1.0 means that the camera will be aligned at the bottom of the screen linear 2 yalign 0.0 # it will take 2 seconds to go to ...
by laure44
Tue Oct 04, 2022 2:06 pm
Forum: Ren'Py Questions and Announcements
Topic: Bar sound in the Settings menu
Replies: 2
Views: 412

Re: Bar sound in the Settings menu

You can't use activate_sound and hover_sound for bars (or for vbox like in your exemple), however you can do something like this: bar: value Preference("music volume") #at bar_transform released Play("sound", "sound/se/se_02.ogg") hovered Play("sound", "s...
by laure44
Sun Sep 25, 2022 6:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Centering text inside a frame [solved]
Replies: 2
Views: 308

Re: Centering text inside a frame

You can also use fixed.

Code: Select all

fixed fit_first True:
    add "an image"
    text "a text"
by laure44
Mon Sep 19, 2022 1:05 am
Forum: Ren'Py Questions and Announcements
Topic: (solved) About rounding numbers
Replies: 2
Views: 367

Re: About rounding numbers

Doeny wrote: Mon Sep 19, 2022 12:28 am Hi, I need help with rounding numbers to hundredth part/2nd space after comma. Can i do it in a simple way or do I have to write an individual code for that?

Code: Select all

round(num,2)
by laure44
Tue Sep 13, 2022 7:11 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Premade gallery broken with switch to Ren'Py 8.0+
Replies: 2
Views: 361

Re: Premade gallery broken with switch to Ren'Py 8.0+

for num in range(pages): Your variable 'pages' is probably a float, hence the error. Make sure it is an integer first. Or if needed, you can convert it to an integer like this: init python: import math math.floor(pages) # rounds down math.ceil(pages) # rounds up # OR int(pages) # is also an option ...
by laure44
Tue Sep 13, 2022 10:35 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Help with creating a dev tool for camera panning and zooming
Replies: 4
Views: 559

Re: Help with creating a dev tool for camera panning and zooming

I have absolutely no idea what's going on to be honest, so I've messed with your code a little and tried another way to achieve what you need. You don't need to press a button to see the result anymore and I've also added a Copy button to copy the camera statement to the clipboard. default camera_zo...
by laure44
Sun Sep 11, 2022 3:12 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Reposition text box temporarily?
Replies: 6
Views: 454

Re: Reposition text box temporarily?

Semicolonkid wrote: Sun Sep 11, 2022 3:11 pm What am I missing here?
Pretty sure you can't use conditions in styles, which is why I used it in the say screen directly
by laure44
Sun Sep 11, 2022 2:47 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Reposition text box temporarily?
Replies: 6
Views: 454

Re: Reposition text box temporarily?

Here's one simple way: default textbox_top = False # in your say screen, find the window line and add the condition. window: id "window" if textbox_top: yalign 0.0 ## label start: "Bottom." $textbox_top = True "Top." $textbox_top = False "Bottom again."
by laure44
Thu Sep 08, 2022 9:11 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] AttributeError: type object 'Player' has no attribute 'equipment'
Replies: 6
Views: 388

Re: AttributeError: type object 'Player' has no attribute 'equipment'

I did test it on a fresh game and it works fine. Perhaps you should try to rename pc to something else, just to make sure the error doesn't come from that.
by laure44
Sat Sep 03, 2022 3:11 pm
Forum: Ren'Py Questions and Announcements
Topic: List of class objects
Replies: 2
Views: 338

Re: List of class objects

You can use default/define as you already did for your objects

Code: Select all

default girls_list = [mg, rx, mi]
by laure44
Sun Aug 28, 2022 9:46 pm
Forum: Ren'Py Questions and Announcements
Topic: Making main menu images pop in
Replies: 3
Views: 384

Re: Making main menu images pop in

Hmmm.... would each "image" label there be a different image file to put on top of the menu screen (in the gui folder I assume?)? How would it know where to correctly place them on the base/background image? It technically does not matter where are your images as long as you write the cor...
by laure44
Sun Aug 28, 2022 8:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Making main menu images pop in
Replies: 3
Views: 384

Re: Making main menu images pop in

Not sure if I got it right, do you want to make the elements fade in individually? If so, here's one way of doing it: transform mm_dissolve(p): alpha 0 p # p seconds pass before appearing linear 1 alpha 1 screen main_menu(): add "image" at mm_dissolve(1) textbutton "textbutton" a...
by laure44
Fri Aug 26, 2022 2:53 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] multiple of the same item in inventory giving problems
Replies: 6
Views: 435

Re: multiple of the same item in inventory giving problems

zant19 wrote: Fri Aug 26, 2022 2:41 pm I had to mess around to get

Code: Select all

$ heartinventory.append(copy.deepcopy(sword))
to work (got to import copy at the beginning of python block) but it definitely better looking then the other way.
Right, I forgot about the import copy part, sorry about that :oops:

Glad it helped!
by laure44
Fri Aug 26, 2022 1:28 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] multiple of the same item in inventory giving problems
Replies: 6
Views: 435

Re: multiple of the same item in inventory giving problems

It seems the issue comes from the fact that the two swords are basically the same object. Making a copy of sword would do the trick because it would be a whole other object. $ heartinventory.append(copy.deepcopy(sword)) # OR $ heartinventory.append(Weapon("Sword", 1, "weapon_sword.png...