text stringlengths 0 40.9k | label stringlengths 5 23 | dataType stringclasses 2
values | communityName stringlengths 5 23 | datetime stringclasses 32
values |
|---|---|---|---|---|
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out [the posting guide](https://www.reddit.com/r/RenPy/comments/1099hpg/a_short_posting_guide_or_how_to_get_help/), [the subreddit wiki](https://www.reddit.com/r/RenPy/wiki/index/), [the subreddit Discord](https://disco... | r/renpy | comment | r/RenPy | 2024-24-08 |
One thing I learned is that sound effects doesn’t loop with the sound code command. If you want sound effects to loop, you need to make Ren’Py think it’s music. play music “audio/sound_title.[insert file extension]”
For audio, I typically use .ogg for music, but .mp3 and .wav also works.
Maybe the volume is turned do... | r/renpy | comment | r/RenPy | 2024-25-08 |
The sound effect is looping, weirdly enough. My problem is more that the music won't start playing again after I load a scene, and the sound only plays if I go through the game without loading any scenes.
Sorry if I misunderstood you, I'm not used to all of this coding stuff :/ | r/renpy | comment | r/RenPy | 2024-25-08 |
You didn’t misunderstand me :) I appreciate the clarification.
Let’s see, I know people have made channels for music in their Ren’Py projects to play music that way. Unfortunately, idk how exactly it works or how to code it, but from what I’ve seen, it can potentially be what you need.
Maybe look into how to make ch... | r/renpy | comment | r/RenPy | 2024-25-08 |
Thanks for the help! I'm gonna look into making custom channels and hopefully it yields good results! | r/renpy | comment | r/RenPy | 2024-25-08 |
I wish you the best of luck! I apologize that I couldn’t resolve this problem of yours, but I hope I sent you in the right direction.
If we’re lucky, maybe someone else will respond in here with a solution that works 🤞🏻 | r/renpy | comment | r/RenPy | 2024-25-08 |
Functionally, there is no difference between the "music" and "sound" channels. They're just differently named versions of the same type of audio channel, to guide devs where to put various types of sounds. Same goes for "voice." You can loop a sound just like any other audio file. | r/renpy | comment | r/RenPy | 2024-25-08 |
Functionally, there is no difference between the "music" and "sound" channels. They're just differently named versions of the same type of audio channel, to guide devs where to put various types of sounds. Same goes for "voice." You can loop a sound just like any other audio file. | r/renpy | comment | r/RenPy | 2024-25-08 |
There's no reason why what you've written wouldn't work. The two `play` statements under the `label start:` statement should be indented, but...
When you run into situations like this, it's helpful sometimes to write a really stupid short program to see if it actually works or not. So:
define pike = Character("Ch... | r/renpy | comment | r/RenPy | 2024-25-08 |
It's really simple. I typically use two music channels so I can easily cross-fade between them. Music is played on both the `music` channel, and a new channel called `music2` set up by:
# Channel 'music2' is a music channel
$ renpy.music.register_channel('music2', 'music')
$ director.audio_channels.append(... | r/renpy | comment | r/RenPy | 2024-25-08 |
Idk about you, but I could never loop sound effects when typing something like this:
play sound “audio/sound_effect.mp3” loop | r/renpy | comment | r/RenPy | 2024-25-08 |
If you load the game, will the music play, using this method you provided?
OP stated that loading a save prevents the music from playing for some reason (the music that starts playing at the beginning of the game). | r/renpy | comment | r/RenPy | 2024-25-08 |
Well, you might if the "sound_effect" were a crackling fire. Just saying. | r/renpy | comment | r/RenPy | 2024-26-08 |
Loaded and played just fine. That's why I posited that something else that might stop sound might be happening somewhere else in the code. | r/renpy | comment | r/RenPy | 2024-26-08 |
That’s irrelevant. The type of sound effect doesn’t matter. When coding an audio file as a sound, Ren’Py never loops sounds (at least not for me) whenever Ren’Py reads an audio file as a sound instead of music. | r/renpy | comment | r/RenPy | 2024-26-08 |
I hope your solution helps OP. | r/renpy | comment | r/RenPy | 2024-26-08 |
Sorry, that's not true. The example I gave the OP came from a test file that had a (truly annoying) loop of a short, keyclick sound. It looped just fine. The current game I'm working on has several ambient background sounds (beach waves, traffic, mall sounds) that are played on loop. | r/renpy | comment | r/RenPy | 2024-26-08 |
I looked at your example and it’s not coded the way I mentioned. Your code uses channels and is not using the loop code command for a sound.
Your example however looks more efficient for flexibility involving audio files for many possibilities.
My point was that simply coding in play sound “audio/sound_effect.mp3” l... | r/renpy | comment | r/RenPy | 2024-26-08 |
Sigh. u/TropicalSkiFly, I'm not trying to "debate." I don't understand why you keep saying things like "simply coding in play sound “audio/sound\_effect.mp3” loop does not actually loop the audio file."
This takes one minute to illustrate. Create a new project. Copy `renpyallstars.ogg`, `punch.opus`, and `tower_clock.... | r/renpy | comment | r/RenPy | 2024-26-08 |
That’s easy to say, but there’s one thing you’re mistaken about:
- Ren’Py can tell the difference between sound and music. It’s dependent on how you code it in.
If you code in play music, Ren’Py views it as a music audio file. If you code in play sound, Ren’Py views it as a sound audio file.
If there was truly no di... | r/renpy | comment | r/RenPy | 2024-26-08 |
[https://www.renpy.org/dev-doc/html/audio.html#sound-functions](https://www.renpy.org/dev-doc/html/audio.html#sound-functions)
I see it all the time here. People ask why when they play a sound, it stops their music. It's because they're trying to use the music channel for both. *Because if you don't specify a channel,... | r/renpy | comment | r/RenPy | 2024-26-08 |
Well when I have music playing and I type in the play sound command, it doesn’t stop the music. The sound plays until the audio length ends.
But why do you persist on trying to prove that you’re right and i’m wrong?
Can’t we just agree to disagree since this is going nowhere? | r/renpy | comment | r/RenPy | 2024-26-08 |
>Well when I have music playing and I type in the play sound command, it doesn’t stop the music. The sound plays until the audio length ends.
Because they're *two different channels*. Each channel operates separately from the other. I must be doing a really bad job of explaining this. "`play music`" means to play an a... | r/renpy | comment | r/RenPy | 2024-26-08 |
This is becoming stressful, I’m ending this “conversation” because it feels more like an argument. | r/renpy | comment | r/RenPy | 2024-26-08 |
r/renpy | post | r/RenPy | 2024-25-08 | |
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out [the posting guide](https://www.reddit.com/r/RenPy/comments/1099hpg/a_short_posting_guide_or_how_to_get_help/), [the subreddit wiki](https://www.reddit.com/r/RenPy/wiki/index/), [the subreddit Discord](https://disco... | r/renpy | comment | r/RenPy | 2024-25-08 |
everything from show black to show gideon isn't tabbed under your start label | r/renpy | comment | r/RenPy | 2024-25-08 |
it still didn't show gideon being at the right after i had tabbed everything under the start label, doing the same thing and returning it to main menu 🥲 | r/renpy | comment | r/RenPy | 2024-25-08 |
it automatically returns to main menu if theres no line for it to attach to. theres nothing wrong with your code, you just dont have a dialogue line to pause on so it swaps back to main menu | r/renpy | comment | r/RenPy | 2024-25-08 |
dude thank you so much🙏🙏 | r/renpy | comment | r/RenPy | 2024-25-08 |
I think its because the game will always try to find something to be "stuck at". This can be a quote, a pause, or even a call screen.
I really like the Gustavo Fring up there. | r/renpy | comment | r/RenPy | 2024-25-08 |
you can shorten your code some, like this
label start:
$ name = renpy.input(What's your name?").strip() or "Joe"
show black
the --> $ <-- makes it a one line python command! | r/renpy | comment | r/RenPy | 2024-25-08 |
If you want that scene to end like it is doing right now - add:
show gideon default at right
with Pause(1.5) ###put in there how long the game should wait | r/renpy | comment | r/RenPy | 2024-25-08 |
oh that's because you don't have any dialogue after gideon, so renpy thinks to either continue to the next label (which there isn't) or end the game. | r/renpy | comment | r/RenPy | 2024-25-08 |
Hello, i just start learning with renpy to fill my free time and to learn new skill. From the title, i already done typing the code for the project but i still struggle to make the game launch properly. After i done write the game then i click the 'Launch Project', it always shows the " you' ve created new Ren'py game"... | r/renpy | post | r/RenPy | 2024-25-08 |
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out [the posting guide](https://www.reddit.com/r/RenPy/comments/1099hpg/a_short_posting_guide_or_how_to_get_help/), [the subreddit wiki](https://www.reddit.com/r/RenPy/wiki/index/), [the subreddit Discord](https://disco... | r/renpy | comment | r/RenPy | 2024-25-08 |
Save it to have the most recent changes apply during launch. And make sure you call the right label if you didn’t write yours under start. | r/renpy | comment | r/RenPy | 2024-25-08 |
I dont get it. Do you perhaps have any video about how to do it? | r/renpy | comment | r/RenPy | 2024-25-08 |
If you have access to YouTube there’s tons of helpful tutorials. I think can search them up by yourself. | r/renpy | comment | r/RenPy | 2024-25-08 |
Im sorry but i think your first explaination isn't helpfull for solving my problem but i'll do my best to to find the solution on my own. Again Im so sorry for wasting your precious time 🙏 | r/renpy | comment | r/RenPy | 2024-25-08 |
No worries, just because I couldn’t search the video out for you doesn’t mean you wasted my time. I’m sorry that my initial reply wasn’t helpful. | r/renpy | comment | r/RenPy | 2024-25-08 |
Most code editors **do not** autosave by default (though they can be configured to do so). For Ren'Py this is actually more convenient as a launched game can be set to auto-reload when the source files change (shift+R) to *toggle* the behaviour, and so you want to only save finished changes, not half way through editin... | r/renpy | comment | r/RenPy | 2024-25-08 |
Ctrl + S is how I save (in your code editor)
Also if you want things to auto update while in game press Alr + R (while in game) the top left title should adjust to this change
So launch game title screen alr r, it should reload
In code editor to save ctrl s, doing that should also reload your game. | r/renpy | comment | r/RenPy | 2024-26-08 |
Its Alr R for me | r/renpy | comment | r/RenPy | 2024-26-08 |
Hello! I'm a beginner to coding and for my game I'm hoping to have a different textbox design for two different dimensions the characters go to. I've been searching and trying things out to no avail.
The closest I've gotten was following [this post](https://www.reddit.com/r/RenPy/comments/16u4nwu/how_to_switch_between... | r/renpy | post | r/RenPy | 2024-25-08 |
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out [the posting guide](https://www.reddit.com/r/RenPy/comments/1099hpg/a_short_posting_guide_or_how_to_get_help/), [the subreddit wiki](https://www.reddit.com/r/RenPy/wiki/index/), [the subreddit Discord](https://disco... | r/renpy | comment | r/RenPy | 2024-25-08 |
you could create a second character with the second text box added to the second character, something like this:
define bm = Character("BadMustard") #uses the default text box
define bm2 = Character("BadMustard", window_background=Frame("badsTextbox_background.png" ) #uses a different text box as defined... | r/renpy | comment | r/RenPy | 2024-25-08 |
I've tried that too! Not only was the textbox also squished (i dont rly know how to fix that) but that would mean I have to define all of the characters again for dimension 2, which is tedious but not the worst. I mainly don't know how to fix the textbox... | r/renpy | comment | r/RenPy | 2024-25-08 |
The frame is what’s distorting your text box, if your box image is exactly the right size in pixels, you can omit the frame, but if the text box is used anywhere else in the game, it could cause scaling issues there.
You can also maybe try making a “dimension” variable and then adding an if statement into the say scree... | r/renpy | comment | r/RenPy | 2024-25-08 |
My frame is the right size in pixels! Is the frame code in screens.rpy? | r/renpy | comment | r/RenPy | 2024-25-08 |
It’s wherever the image is defined. You can search your code for frames by searching for “Frame(“ it should look something like what badmustard shows above | r/renpy | comment | r/RenPy | 2024-27-08 |
Hi! Im new to renpy, i tried to change these window and fullscreen texts into imagebutton while looking for references but none seems to be working. Can anyone help me out? | r/renpy | post | r/RenPy | 2024-25-08 |
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out [the posting guide](https://www.reddit.com/r/RenPy/comments/1099hpg/a_short_posting_guide_or_how_to_get_help/), [the subreddit wiki](https://www.reddit.com/r/RenPy/wiki/index/), [the subreddit Discord](https://disco... | r/renpy | comment | r/RenPy | 2024-25-08 |
The syntax for imagebutton vs textbutton is almost identical. You just have to supply the image names (idle and hover) for the buttons. The action commands are ***exactly*** the same.
Replace:
vbox:
style_prefix "radio"
label _("Display")
textbutton _("Window") action Preference("display",... | r/renpy | comment | r/RenPy | 2024-25-08 |
Thank you for the guide, before this post i used a code similar to what you show me (havent positioned the xpos and ypos yet) :
vbox:
style_prefix "radio"
label _("Display")
hbox:
... | r/renpy | comment | r/RenPy | 2024-25-08 |
It's "%s" not "$s". (Percent, not Dollar sign) | r/renpy | comment | r/RenPy | 2024-25-08 |
OH OMG what a dumb mistake, prolly because i worked on this half asleep overnight XD. Thank you for all the help! Ill be more careful next time | r/renpy | comment | r/RenPy | 2024-25-08 |
Has your question been solved? | r/renpy | comment | r/RenPy | 2024-26-08 |
Yup! The code works just fine, i just used a wrong synbol | r/renpy | comment | r/RenPy | 2024-26-08 |
Cool, congrats | r/renpy | comment | r/RenPy | 2024-26-08 |
Hii, another question since I'm struggling again. I'd like to make the game menu pop out from the bottom of the screen but I'm having problems at doing so. I figured that maybe i could change that in the options.rpy and in the define config transitions, but with changing the transition output i can't see a single diffe... | r/renpy | post | r/RenPy | 2024-25-08 |
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out [the posting guide](https://www.reddit.com/r/RenPy/comments/1099hpg/a_short_posting_guide_or_how_to_get_help/), [the subreddit wiki](https://www.reddit.com/r/RenPy/wiki/index/), [the subreddit Discord](https://disco... | r/renpy | comment | r/RenPy | 2024-25-08 |
Go into `screens.rpy`. Find the line that says `screen quick_menu():`
Just above that line, enter the following transform:
transform popup_quick_menu:
ypos config.screen_height + 30
ease 1.0 yalign 1.0
Down in `quick_menu`, where it says `hbox:`, change it to `hbox at popup_quick_menu:`
`If you ... | r/renpy | comment | r/RenPy | 2024-25-08 |
sooo.. i figured out how to make it work both for showing and hiding the quick menu (thanks for the exercise btw!) but still don't know how to do it for the actual game menu. The one that shows preferences and all. Where would that code go? | r/renpy | comment | r/RenPy | 2024-25-08 |
Sorry, read the OP too quickly. Same sort of exercise, but it's `game_menu` and `navigation`. When you load Preferences or Load/Save or whatever, it uses game\_menu as a base, fills in the right hand side with whatever the individual screen is, and then fills in the navigation section. You can quickly see what would ha... | r/renpy | comment | r/RenPy | 2024-25-08 |
No problem and thank you so much, it worked! I alr have an idea of how to fix the title issue so that wouldn't be much of a problem :) | r/renpy | comment | r/RenPy | 2024-25-08 |
sorry for all the trouble omg, i encountered another small issue. I'm rly new at coding so i often encounter problems :')
the transform plays everytime i switch tabs (for example, switching from save to preferences menu within the game menu), and I'd want it to play only when i open up the menu. Do you know how to fix ... | r/renpy | comment | r/RenPy | 2024-25-08 |
This is why I stay away from stuff like this. You'd have to check to see if `game_menu` is already showing. The problem is: how to only apply the transform when the game\_menu screen isn't showing. Instead of applying the transform right away, you can apply it conditionally:
vbox:
if not renpy.get_screen("... | r/renpy | comment | r/RenPy | 2024-25-08 |
thank you so much! I'm sorry for all the trouble. I'll check if this code works but either way I'm on the right path :) | r/renpy | comment | r/RenPy | 2024-25-08 |
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out [the posting guide](https://www.reddit.com/r/RenPy/comments/1099hpg/a_short_posting_guide_or_how_to_get_help/), [the subreddit wiki](https://www.reddit.com/r/RenPy/wiki/index/), [the subreddit Discord](https://disco... | r/renpy | comment | r/RenPy | 2024-25-08 |
hiding the dialog box and **hiding the interface** are two different things. if you hide the interface then ALL SCREENS are hidden. using "window hide" in a label will hide just the dialog. | r/renpy | comment | r/RenPy | 2024-25-08 |
thank you for the correction! I'm sorry for the mistake, what I meant was the dialogue box! I already edited the post. but yeah, I was wondering if there's another way for the fire animation to still appear | r/renpy | comment | r/RenPy | 2024-25-08 |
the H key or middle mouse is not hiding the dialog box. its hiding the whole interface. your problem is all screens are hidden when hiding the interface. | r/renpy | comment | r/RenPy | 2024-25-08 |
I just started to use this app because I wanted to make a youtube video of a “gameplay” I made on capcut into an actual game. However, I know nothing about game-making. I am so lost on RenPy and I just want a guide on how to customize the main menu screen and everything. I can’t even open my script!! I don’t know what ... | r/renpy | post | r/RenPy | 2024-25-08 |
https://www.renpy.org/dev-doc/html/gui.html#gui-customization-guide | r/renpy | comment | r/RenPy | 2024-25-08 |
> I can’t even open my script!! I don’t know what to do?
Post better errors.
What do you mean "I can't even open my script!!" ? What does that mean? Do you mean the text editor you chose isn't opening? Do you mean it's throwing a path error? Are you sure it's your script and that you started a new game?
I underst... | r/renpy | comment | r/RenPy | 2024-25-08 |
I learned a lot by cracking open an already established game and modifying the code to do things that I wanted in my game. A lot of the menu scripts are pretty cookie cutter. I've picked up a lot just by playing other games, wondering how they did something, and then looking. | r/renpy | comment | r/RenPy | 2024-25-08 |
You need to have a script editor first, so that you can select it. That way, you will be able to begin coding in your script editor.
Some examples are Atom and Visual Studio Code. | r/renpy | comment | r/RenPy | 2024-25-08 |
I recommend watching the tutorial that RenPy comes with, I'd love to play your game some day | r/renpy | comment | r/RenPy | 2024-26-08 |
Ok, Ill check it out thank you. Also its been showing this "an exception occured while laucnhing the text editor file not found". I downloaded Atom, but it still shows that message so I was still lost. | r/renpy | comment | r/RenPy | 2024-26-08 |
What do i do after downloading atom? it still shows the message that the text editor file isnt found | r/renpy | comment | r/RenPy | 2024-26-08 |
Thank you :) | r/renpy | comment | r/RenPy | 2024-26-08 |
Thank you, I hope the game is playable someday lol | r/renpy | comment | r/RenPy | 2024-26-08 |
hi, sorry to hijack, but im interested in learning renpy (literally started trying for the first time as for an hour ago) and i was wondering - what do you mean by "cracking open an already established game"? are you able to see their code or something? | r/renpy | comment | r/RenPy | 2024-26-08 |
Yes, there are de-compiler scripts available on Github. I won't post links because they're controversial in some RenPy groups, but the language was designed with it in mind. | r/renpy | comment | r/RenPy | 2024-26-08 |
You need to have Atom opened and have Ren’Py locate Atom.
I hope this helps:
https://www.renpy.org/doc/html/quickstart.html | r/renpy | comment | r/RenPy | 2024-26-08 |
Many RenPy devs don't obfuscate their code. Even the ones that do ate trivial to decompile and examine. There's no true encryption going on.
So yeah, you look at how a game did a thing. | r/renpy | comment | r/RenPy | 2024-26-08 |
what does that mean? is there any open sourced game i can learn by look? im a complete noob here, sorry. | r/renpy | comment | r/RenPy | 2024-26-08 |
Tons of them. Most of them, really, since obfuscating it requires additional steps many novices don't do.
Kinda works in your favor there as once the person making the game starts doing complex things, then they realize they can hide their code.
Anyway, the tutorial is unlocked. Play it, it literally teaches you ho... | r/renpy | comment | r/RenPy | 2024-26-08 |
I been programming for years, I use Python sporadically (not an expert), just started with Ren'Py (8.2.3 for Linux).
default counter = 0
define magenta = Solid('#ff00ff')
define gray = Solid('#aaaaaa')
label start:
scene expression magenta
label game_loop:
while True:... | r/renpy | post | r/RenPy | 2024-25-08 |
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out [the posting guide](https://www.reddit.com/r/RenPy/comments/1099hpg/a_short_posting_guide_or_how_to_get_help/), [the subreddit wiki](https://www.reddit.com/r/RenPy/wiki/index/), [the subreddit Discord](https://disco... | r/renpy | comment | r/RenPy | 2024-25-08 |
You're referring to `counter` (a global) in a local context. Why are you doing the counter math in Python, anyway? Either use the standard Ren'Py syntax, or define a Python block (not a single statement) and declare `counter` as `global` before referring to it.
And for God's sake do NOT use ChatGPT for Ren'Py help. Th... | r/renpy | comment | r/RenPy | 2024-25-08 |
I'm fairly sure this is because your game isn't checkpointing (Ren'Py normally does this at say statements and menus - but you can force it elsewhere). It's assumed that a Ren'Py VN game will contain one or both of these things.
The save game is the state at the last checkpoint, which in your case may only be `label ... | r/renpy | comment | r/RenPy | 2024-25-08 |
did you advance enough times or just once? renpy does not save the current state when you save. it saves the state at "the last save checkpoint" which is right BEFORE the latest interaction. in addition when a game loads, it does a soft rollback.
this is why when you load a game during dialog the last line of d... | r/renpy | comment | r/RenPy | 2024-25-08 |
Good question.
I threw all but the screen in script.rpy, added the screen to screens.
I've got an add button in the top right. I clicked it up to six, saved, closed the game completely, relaunched it, loaded my save and - six is in the corner.
Took the last bit out of screens, put it in script.rpy because it doesn'... | r/renpy | comment | r/RenPy | 2024-25-08 |
Just use persistent variables , in the docs if that helps you | r/renpy | comment | r/RenPy | 2024-25-08 |
Thank you, can you provide some example of the renpy sintax to do math? I created a python block with a function increment\_counter and declared counter as global before incrementing it but still doesn't work | r/renpy | comment | r/RenPy | 2024-25-08 |
I though so also, I'm trying to avoid say statements tho, anyway I added it as you suggested and is still not working, I tried to call retain\_after\_load in some of my past tests (in the documentation there's an example similar to mine, it just doesn't loop, but that also didn't help) | r/renpy | comment | r/RenPy | 2024-25-08 |
I'm clicking Add more than once if that is what you mean, dozen of times, I did read about "interaction" but is not clear to me what that is now, I thought it was a say statement but adding one it doesn't seems to work | r/renpy | comment | r/RenPy | 2024-25-08 |
I'm working on about an hour of sleep, so I've been misspeaking here.
`counter` should be seen in the proper scope by your code, my bad. That's what my sleep-addled brain disagreed with. As far as math, just say it without the $ dollar-sign delimiter. `counter += 1` is valid syntax in Ren'Py.
I just copied and pasted... | r/renpy | comment | r/RenPy | 2024-25-08 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.