Search found 302 matches

by henvu50
Wed Sep 15, 2021 5:33 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to use renpy.profile_screen to debug interface lag on Android?
Replies: 0
Views: 49

[Solved] How to use renpy.profile_screen to debug interface lag on Android?

EDIT: I figured out the lag problem with my android game. I was using showif and a ton of elif's in the tooltip. The tooltip was part of a global tooltip system. So everytime you tapped any button, it would have to process about 50 showif/elif statements that each have various screens with tons of i...
by henvu50
Mon Sep 06, 2021 11:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Is partial playback not meant to work with fadeout?
Replies: 0
Views: 89

Is partial playback not meant to work with fadeout?

The fadein works, but the fadeout doesn't. Is that intended?

Code: Select all

renpy.music.play('<from 15 to 30>' + musicFile01, channel='music', fadein=2.0, fadeout=2.0)  
It kind of makes sense that it wouldn't fadeout, but it would be nice if it did work, but I can easily edit the music file in audacity.
by henvu50
Mon Sep 06, 2021 10:33 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to play music at splashscreen, but not have it loop infinitely?
Replies: 4
Views: 164

Re: How to play music at splashscreen, but not have it loop infinitely?

I'd prefer the music start at the splash screen. ... label splashscreen: $ renpy.music.play(filenames=someMusic, channel='music', loop=False, if_changed=True, fadein=4.0, fadeout=2.0) return Yes, you can start music at splashscreen (that's why if_changed=True is used in main menu). on 'show' action...
by henvu50
Mon Sep 06, 2021 9:30 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to play music at splashscreen, but not have it loop infinitely?
Replies: 4
Views: 164

Re: How to play music at splashscreen, but not have it loop infinitely?

I'd prefer the music start at the splash screen. Oh well, this is not a big deal, but I was hoping I could gain absolute control of the audio. Edit: Okay, this works for now. Stick this in the screen main_menu screen main_menu: # ...... # disable music after a duration on 'show' action Show('timer_s...
by henvu50
Sat Sep 04, 2021 11:09 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to play music at splashscreen, but not have it loop infinitely?
Replies: 4
Views: 164

[Solved] How to play music at splashscreen, but not have it loop infinitely?

EDIT: The easiest solution is to comment out define config.main_menu_music = someMusic, like Alex said, but then just move everything from your splashscreen to before_main_menu. Then, in before_main_menu, play your music file with noloop added or loop=False. Using before_main_menu solved the issue, ...
by henvu50
Sun Aug 29, 2021 12:16 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How do I add a custom value range on bar value Preference("font scale") ?
Replies: 1
Views: 337

[Solved] How do I add a custom value range on bar value Preference("font scale") ?

How do I add a custom range on bar value Preference("font scale")? This is how the font size is normally changed from 00accessibility.rpy bar value Preference("font size") textbutton _("Reset"): action Preference("font size", 1.0) I'm trying to make a bar that changes the font size, but I want the b...
by henvu50
Sat Aug 28, 2021 8:48 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to wrap text around image
Replies: 4
Views: 723

Re: [SOLVED] How to wrap text around image

I'm currently trying to figure out how to do this with the say dialogue screen. I want to embed the sideImage in a way where the dialog text wraps around it.
by henvu50
Sat Aug 28, 2021 8:37 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I show the say dialogue text to the right of and below the sideImage? (Pic)
Replies: 1
Views: 329

How do I show the say dialogue text to the right of and below the sideImage? (Pic)

How do I show the say dialogue text to the right of and below the sideImage?

Like this?
Untitled-3.jpg
Where the purple square box represents the sideImage(), and the text represents the what variable inside screen say?
by henvu50
Sat Aug 28, 2021 1:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Can I set the ypos of a textbox as equal to ypos of an imagebutton?
Replies: 9
Views: 1373

Re: Can I set the ypos of a textbox as equal to ypos of an imagebutton?

The renpy.focus_coordinates() turned out to be very useful! Thanks for responding with that info. Is it also possible to get the ID of the displayable, in addition to the focus coordinates? # pseudo code $ rfc = renpy.focus_coordinates(alsoReturnDisplayableID=True) # result # (343,142,832,443, "main...
by henvu50
Fri Aug 27, 2021 2:56 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to get the screen x & y position of a displayable?
Replies: 7
Views: 563

Re: How to get the screen x & y position of a displayable?

... Try this sample, looks like it's what you are looking for - https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=62714&sid=e35f5bc43a0615ec021830453d9c9a91#p546039 That's it! Damn. I swear, I looked so hard to search for something like that. 90% of the time I find what I'm looking for, but tha...
by henvu50
Fri Aug 27, 2021 1:09 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to get the screen x & y position of a displayable?
Replies: 7
Views: 563

Re: How to get the screen x & y position of a displayable?

Currently my tooltip is in a fixed location. I wanted to create an improved tooltip that shows up near the displayable it's hovering over, dynamically. For now, I do this manually. I place a tooltip like text displayable near the button manually. The problem with this, is if I change the design of t...
by henvu50
Thu Aug 26, 2021 1:53 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to get the screen x & y position of a displayable?
Replies: 7
Views: 563

[Solved] How to get the screen x & y position of a displayable?

edit: Thanks to Alex & Philat. Scroll down to alex's post for the solution. Solution: renpy.focus_coordinates() # returns (x, y, w, h) of focused displayable https://www.renpy.org/doc/html/other.html#renpy.focus_coordinates I'm very close. I'm trying to get the xpos & ypos of the textbutton. Here is...
by henvu50
Thu Aug 26, 2021 12:15 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Can I use renpy.variant('small') instead of renpy.variant('mobile'), touch, pc, web?
Replies: 3
Views: 463

[Solved] Can I use renpy.variant('small') instead of renpy.variant('mobile'), touch, pc, web?

Edit: solutions in comments below. For the sake of keeping things simple. Instead of doing this: if renpy.variant('mobile') or renpy.variant('touch'): #or if renpy.variant('pc') or renpy.variant('web'): [code] Can I get away with using this instead in 99% of cases? If this returns true, I know it ha...
by henvu50
Tue Aug 24, 2021 2:06 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Tooltips flash for a split second when button tapped on mobile.
Replies: 8
Views: 597

Re: [Solved] Tooltips flash for a split second when button tapped on mobile.

Just an FYI. I can't get Alex's code to work when using transclusion (USE statement).... Not tested, but you could try to show a tooltip text at some transform, like transform tt_transform(): alpha 0.0 0.4 alpha 1.0 if tooltip: text "[tooltip]" at tt_transform That worked very well. This issue is t...