Search found 367 matches
- Tue Jul 23, 2019 11:54 am
- Forum: Ren'Py Questions and Announcements
- Topic: Have a sound play a set number of times?
- Replies: 5
- Views: 386
Re: Have a sound play a set number of times?
Anyway: label start: '...' play sound ['bang.mp3', 'bang.mp3', 'bang.mp3', 'bang.mp3', 'bang.mp3'] 'queue of five shots' return or define audio.bang = ['bang.mp3', 'bang.mp3', 'bang.mp3', 'bang.mp3', 'bang.mp3'] label start: '...' play sound bang 'queue of five shots' play sound bang[:3] #! the numb...
- Tue Jul 23, 2019 11:54 am
- Forum: Ren'Py Questions and Announcements
- Topic: Have a sound play a set number of times?
- Replies: 5
- Views: 386
Re: Have a sound play a set number of times?
Isn't there a loops=5 kwarg or something? No, loops only takes on yes/no values. So, loops=5 is the equivalent of loops=True I didn't see it in the documentation, but I'm sure there was For example, the number of cycles can be set, for transformation ( ATL). Maybe it's settled in your memory.
- Sun Jul 14, 2019 3:41 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to change scenes through Variables and Screens?
- Replies: 4
- Views: 381
Re: How to change scenes through Variables and Screens?
default sun = True layeredimage classroom: if sun: 'classroomday.jpg' else: 'clasroomnight.jpg' screen jx: add "date.png" xalign 0.5 yalign 0.0 if sun: add 'sun_icon.jpg' xalign 1.0 yalign 0.0 else: add 'moon_icon.jpg' xalign 1.0 yalign 0.0 text "Monday" xalign 0.5 ypos 20 label start: show screen ...
- Thu Jul 11, 2019 12:20 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Music Play and Pause
- Replies: 6
- Views: 387
Re: Music Play and Pause
How does the button know, the music is playing, so that I can pause? You can use renpy.music.is_playing() function: https://renpy.org/doc/html/audio.html#renpy.music.is_playing 4example: ...action If(renpy.music.is_playing('music'), PauseAudio('music', 'toggle'), None) https://renpy.org/doc/html/sc...
- Thu Jul 11, 2019 12:19 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Music Play and Pause
- Replies: 6
- Views: 387
Re: Music Play and Pause
Yes.
Code: Select all
... action [ ActionOne(), ActionTwo(), ActionMore() ]
https://renpy.org/doc/html/screen_actio ... ensitiveIf
- Thu Jul 11, 2019 12:18 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Music Play and Pause
- Replies: 6
- Views: 387
Re: Music Play and Pause
TOTALLYNOTGENERATED wrote: ↑Thu Jul 11, 2019 11:53 amBut how do i make it, that the same Button does "Play - Pause - Play - etc" everytime I click?
Code: Select all
... action PauseAudio('music', 'toggle')
- Mon Jul 01, 2019 1:15 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Ren'Py 7.3.1 Released
- Replies: 3
- Views: 5761
Re: Ren'Py 7.3.1 Released
"Open Directory" section of Ren'Py Launcher does not work. Explorer does not open the selected folder (game, base, images etc..)
___
Windows 7
___
Windows 7
- Sun Jun 30, 2019 11:43 am
- Forum: Ren'Py Questions and Announcements
- Topic: Imagebutton
- Replies: 2
- Views: 425
Re: Imagebutton
screens.rpy file: default sx = renpy.random.random() default sy = renpy.random.random() default sato = renpy.random.randint(0, 99) screen main_menu(): ## body of screen main_menu if sato < 25: ### 25 means that, the button will appear with a ~ 25 percent chance imagebutton auto 'm_%s.jpg' align(sx,...
- Sat Jun 22, 2019 11:07 am
- Forum: Ren'Py Questions and Announcements
- Topic: Noob's question about a math game
- Replies: 3
- Views: 558
Re: Noob's question about a math game
Not exactly on the subject... As for your the "test" construction: if test == 10: jump test1 if test == 11: jump test2 if test == 12: jump test3 if test == 13: jump test4 I recommend you to read this article https://patreon.renpy.org/shuffle-menu.html
- Sat Jun 22, 2019 10:57 am
- Forum: Ren'Py Questions and Announcements
- Topic: Prevent side image with unusual position from flickering
- Replies: 1
- Views: 436
Re: Prevent side image with unusual position from flickering
It looks like an error in code implementation, not in the side_image function itself. But it's hard to say anything more concrete without an example code.... Well, try one of the following examples: https://lemmasoft.renai.us/forums/viewtopic.php?t=48137#p477916 https://lemmasoft.renai.us/forums/vie...
- Fri Jun 14, 2019 2:14 pm
- Forum: Ren'Py Questions and Announcements
- Topic: can we animated image within renpy.image ?
- Replies: 1
- Views: 546
Re: can we animated image within renpy.image ?
Code: Select all
init python:
renpy.image(('eileen', 'animated'), Animation("eileen_happy.png", 1.0, "eileen_vhappy.png", 1.0))
- Wed Jun 12, 2019 1:34 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Why imagebuttons blinks
- Replies: 2
- Views: 679
Re: Why imagebuttons blinks
This blinks the image attached to the button. And, it blinks not in a random order, but in the order in which the buttons are written in the screen. That is, the blinks appears in the button, which is temporarily "in focus". I don't know if this is a bug or a feature of the screen language. But ther...
- Mon Jun 03, 2019 12:37 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Expected Menuitem Error
- Replies: 6
- Views: 181
Re: Expected Menuitem Error
label start: "let's start simple." "are you a boy, or are you a girl?" menu: "I am a girl": jump choice1_girl "I am a boy": jump choice1_boy label choice1_girl: #Problem here. $menu_flag = true "Alright, what is your name?" python: povname = renpy.input ("what is you name") povname = povname.strip(...
- Sun Mar 31, 2019 2:02 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Ren'Py OS 19.04.01 - Released
- Replies: 21
- Views: 2446
Re: Ren'Py OS 19.04.01 - Coming Soon
Ooo. That's great news! I'm gonna have to remove MS DOS-2019 from my PC. I hope it's worth it. 

- Sat Mar 30, 2019 9:25 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] How do I animate the "background" on the main menu?
- Replies: 2
- Views: 143
Re: How do I animate the "background" on the main menu?
~88th line of the gui.rpy:
Code: Select all
## The images used for the main and game menus.
define gui.main_menu_background = 'main_menu_animated'