Questions tagged [renpy]

Ren'Py is a visual novel engine that helps you use words, images, and sounds to tell stories with the computer.

Ren'Py is a visual novel engine that helps you use words, images, and sounds to tell stories with the computer. These can be both visual novels and life simulation games. The easy to learn script language allows you to efficiently write large visual novels, while its Python scripting is enough for complex simulation games.

Ren'Py is open source and free for commercial use. It supports Windows, Mac OS X, Linux, Android, and iOS.

Documentation

98 questions
1
vote
2 answers

Python - Reset value for all instances of the same class

in a Ren'Py game I'm coding, I'm trying to optimize my code, and I'm stuck at finding a way to reset a the same value for all instances of a same class. Here's my code : init python: class Girl(): def __init__(self,name,age): …
1
vote
1 answer

Override text called with Character in Renpy game

I would like to change the text echoed using the Character class to use context. Let's say my main character name is stored in a variable, every other Character use this variable to call him in dialogues, but i want this variable replaced is certain…
ikaruga
  • 11
  • 2
1
vote
3 answers

Is it possible to implement a splashscreen in Ren'Py?

Is it still possible to implement a splashscreen in the latest version of Ren'Py? I have searched through every forum concerning the use of splashscreens; however, all of them are either outdated or do not work. Below I included the snippet of code…
1
vote
0 answers

pygame.mask doesn't work on renpy

I'm making physics mini game with renpy. I need a collision detection between rotating object (stick/paddle) and a falling object (ball) so I'm using masking for it, here's the code I used: pic_alpha =…
1
vote
2 answers

Increase value of time"stamp" based on previous content - string

Okay, I was really unsure what to title this. I have a game, where I update the time manually, via a variable. $ current_hour = "07:00" for instance What I want to be able to do, is increase this without having to manually enter a new time every…
junkfoodjunkie
  • 3,168
  • 1
  • 19
  • 33
1
vote
2 answers

Build an Xcode project on Windows

I need to compile an Xcode project on Windows. I don't need to make one, because it is automatically generated. I am new to iOS development, and I don't plan to submit to the App Store or pay Apple 100$ to sign it, I just want to build an IPA I can…
1
vote
1 answer

Getting non-ASCII characters to work in Ren'Py functions

I'm translating a Ren'Py game, which involves redefining a function that converts numbers to written-out words in a particular language. Those strings are then handled and inserted into the game text by the main code of the game (which I can't…
Andii
  • 337
  • 1
  • 5
  • 19
1
vote
2 answers

Python - Pickle init takes 4 arguments - 1 given

Whenever I try to load a pickled object, I get this error: I'm sorry, but an uncaught exception occurred. While running game code: File "renpy/common/00action_file.rpy", line 328, in __call__ renpy.load(fn) TypeError: __init__() takes…
Matthew Fournier
  • 1,077
  • 2
  • 17
  • 32
1
vote
1 answer

Python (for Ren'Py Engine) ui.input into button?

I designed a character creation page, and included a bit where a person can input their name with ui.input() but the problem is, they can't push any buttons or do anything at all without submitting the text first and I am trying to figure out how to…
Raine
  • 11
  • 2
0
votes
0 answers

RenPy Images not defining

For some reason images in my project do not get defined. I have a file named 01_Defs.rpy where all my image and character definitions are placed. For some reason images defined in it can't be used in other script named script_schenki.rpy. On the…
Inoix
  • 1
0
votes
0 answers

Renpy indent line

I'm sorry, but errors were detected in your script. Please correct the errors listed below, and try again. File "game/script.rpy", line 113: Line is indented, but the preceding default statement statement does not expect a block. Please check this…
0
votes
0 answers

Renpy, making the user choose between a male or female MC and also adding a custom name

The thing I'm struggling on at the moment as probably as basic as this is, is to create a code that lets the player choose whether they want to play as a male or female MC and also having it that they can either input their own name if they want…
0
votes
1 answer

How to use function in Show() in Renpy?

How can I display my dictionary on another screen? define python: heroes = { Someone : 1, Someone: 2} screen showBio(id, dict): frame: xsize 300 ysize 300 vbox: text "[dict[id]]" screen characters(): …
0
votes
1 answer

Minimise multiple labels at once in renpy

I have multiple labels in my code like this. The only way to close them as far as I'm aware is to click the four arrows, one time each. This isn't a problem with only four labels. But what if I have a hundred? How can I 'mass close' all labels in…
CodeZealot
  • 199
  • 4
0
votes
1 answer

Making dialogue delay in renpy more efficient

In my visual novel, I have small pauses in between dialogue. The code currently looks like this. The code works fine. But I feel this is extremely inefficient and can get very messy when I eventually get up to hundreds of lines of dialogue. Is…
CodeZealot
  • 199
  • 4