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
0
votes
1 answer

Is there a way to import renpy directly in python instead of using renpy.exe?

I want to make a game in python that I can then import on an html page. All in all, it's a visual novel with python games in it. Is there a way to import the renpy library directly in python or should I do the opposite and import the python games in…
A human
  • 23
  • 5
0
votes
0 answers

How can I create a parallax effect on Ren'Py using the gyroscope feature on Android?

I attempted to make it using the 'pygame' module, but it seems that 'pygame_sdl2' is the default and takes control of the entire process. When I tried to use 'pygame_sdl2', I couldn't find a method to access the accelerometer. After that, I…
0
votes
0 answers

I'd like to do a carousel in python. How can I do it?

I'm working in a pygame made in renpy, a visual novel. I'd like to do a "album screen" where the images colected will be shown. On bottom side I'd like do make an carousel. The images will be salved in a array. I'm trying this: #definindo as…
Milla Dma
  • 25
  • 3
0
votes
0 answers

how to attach deepl translater to text from renpy games

I want the translator to translate the text from the game on the renpy engine and save it in the game file itself forever I don't know where to start
0
votes
1 answer

Two ways to go about name choosing?

I have this RenPy code: label name: $ mcname = renpy.input("What's your name?", default = "Sebastian") $ mcname = mcname.strip() if mcname == "": $ mcname = "Sebastian" if mcname == "Matthias": …
Carneval
  • 9
  • 1
0
votes
0 answers

Failure at building wheel for numpy in a virtualenv, apparently not python version related - Windows 10

I'm trying to install numpy on a Virtual Environment using pip, there is a failure when building wheel for it, however. The problem is only present when trying to install it in the virtualenv, I can install and update it on my system just fine. It…
0
votes
1 answer

Where to place sdk.txt file for previously installed Android SDK?

It is said in renpy documentation and I quote: If you don't want to download the SDK each time, you can create a file named sdk.txt containing a single line that is the path to the already-installed SDK The problem is that, after I create the file…
redwave
  • 15
  • 1
  • 7
0
votes
1 answer

Renpy python variable text color

I started making a novel and learn renpy really recently, and I came across a difficulty that I couldn't find the solution. I put an input for the user to define the name of the protagonist, but when I declare the character, the color that I…
Yumi Tkh
  • 3
  • 2
0
votes
0 answers

How to not refresh a variable constantly to prevent UI lag (game/renpy)

Hello I'm having trouble with a slider/bar in a game I'm developing. Basically, that bar is used to set the value of gold and depending on how much gold, a list of random chances to get a better item will come out (kinda like gacha). The problem is…
Deimos96
  • 13
  • 3
0
votes
0 answers

Renpy/Python - VariableValue screen lag/not showing correct values

I'm trying to make a bar which value is a VariableValue. Depending on the value CUSTOM_ITEM_PRICE, a list of DISPLAY_PERCENTAGES changes. To explain what I'm trying to do, I'm making a shop system where instead of just buying an item, you put an…
Deimos96
  • 13
  • 3
0
votes
0 answers

How to add Renpy Screenshot Transparency (Python)?

I'm trying to add transparency to my images in Renpy with screenshot(). Currently using Atom and Visual Studio Code. I'm not able to try anything due to forgetfulness. I've done it before but lost all my stuff earlier this year. I'm attempting to…
0
votes
0 answers

How to fix Renpy choice code logic error? All roads lead to route 1

How do I make it so the first route text only activate if mc chooses "yes" for the 1st choice and "no" for the 2nd one? Pls help I wrote 500+ lines of code for the first route before noticing this. So I just published a demo of my visual novel on…
0
votes
0 answers

How do you add in-game games to Renpy?

I'm the programmer of a Renpy visual novel. There's a scene in the visual novel that requires a game. It's something similar to the poetry game in DDLC. I can't figure out how add a game like it into the game, and it isn't in the Renpy…
0
votes
0 answers

How do I intentionally throw an exception in Ren'Py?

I'm attempting to throw an exception in Ren'Py using the same method as DDLC. This, as far as I can tell, is done by calling report_exception in renpy.error like this: python: try: …
0
votes
2 answers

Using for loop variable on a getattr() function

I have a class Person with the attributes name and level class Person: def __init__(self, name, level): self.name = name self.level = level let's say i have a bunch of objects from that class with different…
v1sor1
  • 3
  • 1