Search found 84 matches
- Thu Jul 28, 2022 1:05 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] I need that the player can't skip the movie
- Replies: 14
- Views: 616
Re: I need that the player can't skip the movie
Since you did not mention trying, have you tried this solution from m_from_space? This looks like a very good way to do what you're trying to achieve. For this to happen you have to create a movie Displayable and just show it to the player (via a screen might be the best solution). https://www.renpy...
- Thu Jul 28, 2022 11:13 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] I need that the player can't skip the movie
- Replies: 14
- Views: 616
Re: I need that the player can't skip the movie
Try using renpy.pause after renpy.movie_cutscene, like so
Code: Select all
$renpy.movie_cutscene("myfile.avi")
$renpy.pause(2, hard=True)
- Wed Jul 27, 2022 10:04 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Character Customization Coding, How do I...?
- Replies: 1
- Views: 277
Re: Character Customization Coding, How do I...?
Here's one simple and straightforward way: # Following your example; of course these would be adapted with the player's choices. default hair_color = "yellow" default hair_description = "was as vibrant as the sun" label start: "Her [hair_color] hair [hair_description]."...
- Tue Jul 26, 2022 3:18 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Imagebuttons causing lag when hovering
- Replies: 6
- Views: 372
Re: Imagebuttons causing lag when hovering
I used to have some problems with focus_mask True, and have seem a lot of people getting issues with it as well. I don't have it anymore though, maybe a Renpy update solved it. Try turning focus_mask off and see if the problem persists
- Thu Jul 14, 2022 9:08 am
- Forum: Ren'Py Questions and Announcements
- Topic: Renpy 8.0.1 Exception: Properties are not allowed here.
- Replies: 2
- Views: 327
Re: Renpy 8.0.1 Exception: Properties are not allowed here.
The error comes from zorder 99. Remove all the lines containing it, and the code should run fine. If you want to use zorder, do something like this: screen a_screen: zorder 5 instead of writing it in a conditional statement. A screen with zorder 10 will be displayed on top of a screen with zorder 5....
- Sat Jul 09, 2022 1:37 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Using Function action in imagebutton
- Replies: 5
- Views: 420
Re: Using Function action in imagebutton
Instead of
do this instead :
Code: Select all
Function(doSomething(argument))
Code: Select all
Function(doSomething, argument)
- Sat Jul 02, 2022 7:37 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Roll back after right click?
- Replies: 1
- Views: 348
Re: Roll back after right click?
I suppose you could give your players the choice to configure the interaction themselves, through a persistent variable, in the preferences screen. For example, they could choose between: - show pause menu - perform a rollback - do nothing at all Now, I'm no expert on keymaps, but I've done some tes...
- Sat Jun 18, 2022 2:38 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Make sprite appear with scene.
- Replies: 3
- Views: 335
Re: Make sprite appear with scene.
Try this:
Code: Select all
scene testbg onlayer master
show testsprite onlayer master
with fade
- Tue May 03, 2022 5:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Pausing and resuming music and sound in menu screens
- Replies: 4
- Views: 560
Re: Pausing and resuming music and sound in menu screens
This might not be the most optimal, but this will work:
Code: Select all
screen save():
timer 0.1 action PauseAudio("music", value="toggle")
- Fri Apr 15, 2022 1:21 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Changing fonts only in specific areas
- Replies: 2
- Views: 400
Re: Changing fonts only in specific areas
Code: Select all
define e = Character("Eileen", who_font = "yourfont", what_font = "yourfont")
- Thu Jun 17, 2021 3:13 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Why does a screen frame ignore xalign, yalign settings if it has two objects in it?
- Replies: 3
- Views: 815
Re: Why does a screen frame ignore xalign, yalign settings if it has two objects in it?
I would suggest using vbox or hbox instead. screen test8943(): vbox: xalign 0.5 yalign 0.5 textbutton "why12323": action NullAction() imagebutton: idle "a1_idle.png" hover "a1_hover.png" focus_mask True action Jump("dfadf") But if you need the elements to over...
- Wed Jun 16, 2021 7:19 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Adding outline to a textbutton, as a hover effect, causes the text to shift by a few pixels. Anyway to prevent that?
- Replies: 5
- Views: 833
Re: Adding outline to a textbutton, as a hover effect, causes the text to shift by a few pixels. Anyway to prevent that?
Setting xanchor and yanchor to 0.5 did the job for me, but I'm not sure if it's the best way to do this. textbutton "hello": anchor (0.5, 0.5) text_style styleHover action NullAction() The textbutton might not be placed exactly where it's supposed to be but I'm sure that could easily be fi...
- Thu May 27, 2021 7:29 pm
- Forum: Ren'Py Questions and Announcements
- Topic: modal True except one screen
- Replies: 2
- Views: 518
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 ...
- Fri May 21, 2021 10:55 am
- Forum: Ren'Py Questions and Announcements
- Topic: Expected Statement error
- Replies: 2
- Views: 443
Re: Expected Statement error
Hi,
Use transform instead of Transform.
Like this :
Use transform instead of Transform.
Like this :
Code: Select all
init:
transform sroLTxT:
xpos 0.0
ypos 0.0
linear 0.6 xpos -5.0
- Tue Apr 27, 2021 7:58 pm
- Forum: Ren'Py Questions and Announcements
- Topic: User input -- numbers
- Replies: 2
- Views: 390
Re: User input -- numbers
Hey there, renpy.input(prompt, default=u'', allow=None, exclude=u'{}', length=None, with_none=None, pixel_width=None, screen=u'input', **kwargs) prompt is required, so you need to specify it, to make it look like this : $ number = renpy.input("some text", allow="0123456789") Also...