text stringlengths 0 40.9k | label stringlengths 5 23 | dataType stringclasses 2
values | communityName stringlengths 5 23 | datetime stringclasses 32
values |
|---|---|---|---|---|
general tip: always provide your code otherwise any answer is just some kind of tasseography ;)
I bet you either forgot to put a colon on the end of the choice or you have not put anything under the choice:
menu:
"Here is the choice 1":
... <- maybe you have nothing her... | r/renpy | comment | r/RenPy | 2024-28-08 |
I could've sworn I attached an image, apologies, I'm new to reddit aswell😰 lemme just type it instead
menu:
"The metal door":
"You go through the metal door."
"The glass door":
"You go through the glass door."
"The wooden door":
"You go through the wood... | r/renpy | comment | r/RenPy | 2024-28-08 |
did you write it exactly like you did it here? in renpy / python it is important that you set the indention correct. It has to look in your editor like I wrote it above: after menu and the colon you need a new line indented, there in the new line you write "The metal door": and then again a new line with indention:
... | r/renpy | comment | r/RenPy | 2024-28-08 |
can i define a position that isn't one of the preset ones? i want to position a character so that it's slightly to the right but not completely, but i also want there to be a transition at the same time. | r/renpy | post | r/RenPy | 2024-28-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-28-08 |
Good day! If i'm not mistaken, then in the "Tutorial" game there was an explanation and Developer had said, that after writing:
"show <character>:" there may be placed xalign and yalign values
(Example)
show <character>:
xalign 0.75
yalign 1.0
where "xalign 1.0" means Character is going to stand in the righ... | r/renpy | comment | r/RenPy | 2024-28-08 |
Yes but I also want a transition on top of that | r/renpy | comment | r/RenPy | 2024-28-08 |
Create a different file (if you make many of these it's more practical):
There you put:
transform sright:
xpos 0.75 ###whatever number/position you want
Then during your game:
c "Where is NPC2?"
show npc2 at sright with dissolve | r/renpy | comment | r/RenPy | 2024-29-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-28-08 |
This is my code:
```
$ config.font_name_map["YT_font"] = FontGroup().add("font/group/St_small_update3.ttf", 0x0430, 0x0475).add("font/group/St_small_update3.ttf", 0x0061, 0x07a).add("font/group/St_small_update3.ttf", 0x0491, 0x0491).add("font/group/St_capital_bigger.ttf", 0x0401, 0x042f).add("font/group/St_capital_bi... | r/renpy | post | r/RenPy | 2024-28-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-28-08 |
And do i need them to keep information outside of a savefile? Im making a gallery and i don't know if i should use persistent values for unlocks | r/renpy | post | r/RenPy | 2024-28-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-28-08 |
[https://badmustard.itch.io/easy-renpy-gallery-and-replay-gallery](https://badmustard.itch.io/easy-renpy-gallery-and-replay-gallery)
persistent are stored outside of save game files in the persistent file (go figure)
you can check out/use my image and replay gallery... | r/renpy | comment | r/RenPy | 2024-28-08 |
Yes, you should use persistent in this case. | r/renpy | comment | r/RenPy | 2024-28-08 |
I was actually working on a gallery recently—what a coincidence xD
Persistent variables are saved between sessions and loaded as soon as you enter the game, so yes, you can use them for the gallery (it would be the most convenient option, in my opinion).
However, if you follow the RenPy documentation approach, images... | r/renpy | comment | r/RenPy | 2024-28-08 |
I just released my first game a webtoon inspired visual novel in the same genre as solo leveling with a simple rpg system about Homura a Japanese hunter applying and taking an entrance exam inspired by hunter x hunter where he meets many other colorful characters which you will be able to get to know better throughout ... | r/renpy | post | r/RenPy | 2024-28-08 |
Hey, all. I'm working on a simple puzzle where you need to loosen the screws on a vent cover. So far, I have set up the drag group as 1 draggable object and 4 screws as droppables. I also have a Python function that saves the drag\_name of the droppable as a variable called DropPoint. DropPoint is used later to assess ... | r/renpy | post | r/RenPy | 2024-28-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-28-08 |
I Have code:
default up_pressed = False
default down_pressed = False
# default left_pressed = False
# default right_pressed = False
default X = 0
default Y = 0
screen sgame():
add "black"
key ["K_UP", "w"] action [SetVariable("up_pressed", True), SetVariable("down_pressed", ... | r/renpy | post | r/RenPy | 2024-28-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-28-08 |
change your key command to
key ["any_K_w"] action [SetVariable("up_pressed", True), SetVariable("down_pressed", False)]
key ["any_K_s"] ... | r/renpy | comment | r/RenPy | 2024-28-08 |
my idea is the player can open presses the button and open a list to check on it and flip through some pages but i don't know how to
it's like when you press preference under the textbox and it opens
any ideas? | r/renpy | post | r/RenPy | 2024-28-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-28-08 |
create a screen with a button and show it in the script i.e.
screen stationary:
imagebutton:
auto "stationaryIcon_%s.png"
action Show("anotherScreenNamedHere")
label start:
show screen stationary
e "Hello World"
e "I wish I could click... | r/renpy | comment | r/RenPy | 2024-28-08 |
when dialogue plays I want that anytime the player wants to look back at the list they can open it even while dialogue is playing | r/renpy | comment | r/RenPy | 2024-29-08 |
You can stick it in the quick menu if you want, or use the quick menu as a baseline for how to put a permanent button on screen. I can show you buttons I did this way when I can get to my PC. | r/renpy | comment | r/RenPy | 2024-29-08 |
yes the icon would be displayed all the time and be available to the user to click anytime. | r/renpy | comment | r/RenPy | 2024-29-08 |
Here's a snippet of my quick menu up to the point where I've plugged in an inventory screen; I've made the entire quick menu into imagebuttons, too:
screen quick_menu():
## Ensure this appears on top of other screens.
zorder 100
if quick_menu:
#hbox:
#... | r/renpy | comment | r/RenPy | 2024-29-08 |
thanks! | r/renpy | comment | r/RenPy | 2024-29-08 |
you're welcome
good luck with your project | r/renpy | comment | r/RenPy | 2024-29-08 |
tem alguma versão do "tutorial" em portugues ? no caso o tutorial vanila padrão é em ingles mas eu queria ver em portugues apenas para em localizar melhor nos comandos mas sempre que pesquiso acabo indo para " como traduzir"
agradeço desde ja vlw | r/renpy | post | r/RenPy | 2024-28-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-28-08 |
Olá! Até onde eu saiba não, porém você pode assistir em espanhol se for mais fácil pra você, pelo próprio tutorial, indo em preferências.
Outra opção é ir tentando pegar o jeito em inglês mesmo, já que a maioria das respostas que você terá na web são em inglês. | r/renpy | comment | r/RenPy | 2024-28-08 |
r/renpy | post | r/RenPy | 2024-28-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-28-08 |
maybe try putting this in the parentheses
f"Your morality is {points_xp} XP." | r/renpy | comment | r/RenPy | 2024-28-08 |
to fix this you need to edit the screen.rpy file and search for --> screen notify( <--
frame at notify_appear:
text "[message!tq]"
and change it to this:
frame at notify_appear:
text message
i don't know if that will cause other problems with the notify system, but it wi... | r/renpy | comment | r/RenPy | 2024-28-08 |
Try defining points_xp like this:
default points_xp = 0
That way, you can increase or decrease the variable’s number. Doing this will also show a number where [points_xp] is. | r/renpy | comment | r/RenPy | 2024-29-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-28-08 |
What are you trying to achieve?
RPY2 is an interface for R language and is nohow related to renpy. | r/renpy | comment | r/RenPy | 2024-28-08 |
Just figured that out omg. I had hard time understanding the guide and yeah,I installed another software and all. I'll delete this,sorry for bothering you | r/renpy | comment | r/RenPy | 2024-28-08 |
I created the following screen:
screen first_choice():
imagemap:
ground "gui/bg select clear.png"
imagebutton:
focus_mask True
xalign 0.055
yalign 1.05
idle "juliaidle"
hover "juliahover"
act... | r/renpy | post | r/RenPy | 2024-28-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-28-08 |
change this
screen first_choice():
imagemap:
ground "gui/bg select clear.png"
#to thid
screen first_choice():
add "gui/bg select clear.png" size(1920, 1080) # adjust the size to your gui size | r/renpy | comment | r/RenPy | 2024-29-08 |
Does anybody know if using bloxburg photos and editing them is okay to do for backgrounds? I asked in the r/bloxburg subreddit but didn't get much from it /: | r/renpy | post | r/RenPy | 2024-29-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-29-08 |
Sounds like you may need to see what the licensing is under for those images.
Any asset that you choose to use needs to be under some kind of license to let you know what you can and cannot do with it.
Creative Commons is a license (with different types of licenses). When I look for assets to use, I typically use one... | r/renpy | comment | r/RenPy | 2024-29-08 |
Depending on what the player chose in the menu, it was going to add a point to friendship. But it says that ‘friendship’ is not defined, even though I defined it at the start. Did I do something wrong? I haven’t had this problem before. | r/renpy | post | r/RenPy | 2024-29-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-29-08 |
Also, I checked the variable viewer, and ‘friendship’ isn’t there. | r/renpy | comment | r/RenPy | 2024-29-08 |
To define a variable you have to write "default friendship = 1". to modify a variable you write $ friendship += 1 | r/renpy | comment | r/RenPy | 2024-29-08 |
Show the part in the code where you defined it? Maybe there is some conflict there. | r/renpy | comment | r/RenPy | 2024-29-08 |
You need default to declare a variable
Declaring a variable in python is different from declaring it in renpy. Use a getter or use globals.
If you aren't using default, make sure it's declared In a line where the game goes through it. The game goes line by line in order.
Make sure there is no typo. | r/renpy | comment | r/RenPy | 2024-29-08 |
define variable first | r/renpy | comment | r/RenPy | 2024-29-08 |
Oh man. This brings me back to a simpler time, when one didn't knew what the basics were. Haha, we all started here guys. What a throwback | r/renpy | comment | r/RenPy | 2024-29-08 |
Just started a while ago, no experience in coding at all, relying mostly on google searches (I feel a bit stupid after reading the comments lmao, but they’re so helpful) | r/renpy | comment | r/RenPy | 2024-29-08 |
Do not feel stupid at all. Believe me, some of us here have been coding for years and still rely on Google.
Welcome to Renpy and good luck with your project :) We are looking forward to see you improve | r/renpy | comment | r/RenPy | 2024-29-08 |
Thank you! | r/renpy | comment | r/RenPy | 2024-29-08 |
$ friendship = 0 is not defining it, that’s setting it to a certain value.
Like others said in here, you define it above label start.
The way you define it is like this:
default friendship = 0
The rest you did was correct 👍
$ friendship += 1 to increase its value
$ friendship -= 1 to decrease the value | r/renpy | comment | r/RenPy | 2024-29-08 |
`default friendship = 0` | r/renpy | comment | r/RenPy | 2024-30-08 |
here is the deal :
1. when i drop my draggable on my droppable, the background image changes.
2.after i dropped my draggable on my droppable , the positing on droppable and draggable object reverses ( example is on the image.)
explanation : I want my character to stab himself into his heart and pull out his knife so... | r/renpy | post | r/RenPy | 2024-29-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-29-08 |
So I wanted to have this scene be a picture of space behind a ship and the "space" picture would be long horizontally so it could scroll behind the ship and look like its flying along.
at the minute the ship just sits there the space doesn't scroll, the text changes and then the scene ends
what am I doing wrong?
... | r/renpy | post | r/RenPy | 2024-29-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-29-08 |
You'd be better off setting up the scrolling background as an image in and of itself, eg.
image backgroundspace:
"spacescroll"
xalign 0.0
linear 3.0 xpos -2.0 #assuming the image is 2x the width of your game window, -3.0 if 3x, etc.
Then, when you place the images, use 'scene' for the background... | r/renpy | comment | r/RenPy | 2024-29-08 |
is the first part an edit to where I've got the image defined?
so changing
image spacescroll = "images/intro\_spacescroll.png"
Edit: adding your first block underneath where the images are defined? | r/renpy | comment | r/RenPy | 2024-29-08 |
Ah, right, in that case, you want:
image spacescroll:
"images/intro_spacescroll.png"
xalign 0.0
linear 3.0 xpos -2.0
and then `scene spacescroll` | r/renpy | comment | r/RenPy | 2024-29-08 |
thanks, I managed to get it to work with:
image spacescroll = "images/intro_spacescroll.png"
image backgroundspace:
"spacescroll"
xalign 1.0
linear 20.0 xpos 4.49
repeat
your code was having it fly backwards 😅 plus I adjusted for image size as you suggested
then the second bl... | r/renpy | comment | r/RenPy | 2024-29-08 |
>your code was having it fly backwards
Apologies - you hadn't specified a direction, but I should have added that my code would scroll from right to left!
You don't need to define `spacescroll` and `backgroundspace` as separate images, just rewrite as:
image spacescroll:
"images/intro_spacescroll.png"
... | r/renpy | comment | r/RenPy | 2024-29-08 |
I personally put customized transforms in their own type of script that I title as transforms.rpy
And if you customize your spacescroll transform there, you can put (in your script.rpy) scene space at spacescroll
The “at” part makes the image use the transform that you created until you hide the image with either the... | r/renpy | comment | r/RenPy | 2024-29-08 |
The way you defined image backgroundspace does not have the image itself in the defined image. You might as well just turn it into a transform in another script instead of having it in the image itself.
Long story short: this way of defining the image has no image in it. | r/renpy | comment | r/RenPy | 2024-29-08 |
Pro tip: when defining images with the image code command, you don’t have to put “images/“ in it because Ren’Py is programmed to look directly in the images folder the moment you use the “image” code command. | r/renpy | comment | r/RenPy | 2024-29-08 |
On the contrary: I was initially going on the assumption that the background image was named 'spacescroll.png', or whatever image format, in which case, referring to it as 'spacescroll' is acceptable to Ren'Py as long as the file is loose in the images folder.
OP's later post clarified that they had defined 'spacescro... | r/renpy | comment | r/RenPy | 2024-29-08 |
Ah, I see. So where you put “spacescroll” in the code, you were using the defined image variable. | r/renpy | comment | r/RenPy | 2024-29-08 |
No... as I said, where I put "spacescroll" in the code, I was assuming there was an image in the images folder called "spacescroll.png" or "spacescroll.jpg" or whatever. You've said yourself, in your 'pro tip' that Ren'Py doesn't always need the full path to an image (eg "images/spacescroll.png") specified.
More than ... | r/renpy | comment | r/RenPy | 2024-30-08 |
quick question, How do i create a sync id???? | r/renpy | post | r/RenPy | 2024-29-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-29-08 |
r/renpy | post | r/RenPy | 2024-29-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-29-08 |
without seeing any code, it's very hard to determine the problem.
why are you jumping to a label from the main menu for a gallery (images ?)
check out my gallery asset here: [https://badmustard.itch.io/easy-renpy-gallery-and-replay-gallery](https://badmustard.itch.io/easy-renpy-gallery-and-replay-gallery) | r/renpy | comment | r/RenPy | 2024-29-08 |
I checked this out and can confirm this is the right choice to make 👍
Your contributions are greatly appreciated, BadMustard. | r/renpy | comment | r/RenPy | 2024-30-08 |
Hi all,
it's possible to use a list with "Rollback" feature?
My code:
define basket=[]
define fruit
label abc:
$fruit="apple"
if fruit in basket:
"Already!"
else:
if(fruit in basket)==False:
$basket.append(fruit )
If I add the fruit in... | r/renpy | post | r/RenPy | 2024-29-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-29-08 |
you should use default not define for your lists and variables or they won't get added to the save game file, and define are for stuff that can't/won't be changed
the below test code worked for me with roll back and saving
# lists.rpy
default basket=[]
default fruit = ""
label start:
... | r/renpy | comment | r/RenPy | 2024-29-08 |
To expand on the default/define thing:
**define** declares a sort-of constant. It tells Ren'Py that it can re-run this statement to re-create this value. It isn't saved in the save game, and (since it *shouldn't* change) any old values are not kept for roll-back.
**default** declares a true variable. Ren'Py will save... | r/renpy | comment | r/RenPy | 2024-30-08 |
Fun fact: you know how the append code command adds something? The remove code command removes something.
It might not fix the rollback problem, but I figured I’d point it out. | r/renpy | comment | r/RenPy | 2024-30-08 |
Fixed!
Thank you all for the explanation. | r/renpy | comment | r/RenPy | 2024-30-08 |
Hello world!
After lurking on this sub for a while, I've recently started my very first project and most of the basic stuff is working just fine. However, I ran into a problem while trying to code a more complex screen with a RPG-style point allocation system, where the players will be able to click + and - buttons fo... | r/renpy | post | r/RenPy | 2024-29-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-29-08 |
This might be a dumb question, but did you also define the words (in the “[…]”) with the “default” code?
For example:
default intel = 0
This starts that skill at 0, allowing you to increase it, decrease it, etc.
Just want to know if you defined them all that way first.
I do want to help you, but ensuring that the ... | r/renpy | comment | r/RenPy | 2024-29-08 |
if this is a screen, then try it like this
screen displaying():
text "{color=#000000}Strength: [strength]{/color}":
xalign 0.80
yalign 0.20
text "{color=#000000}Constitution: [const]{/color}":
xalign 0.80
yalign 0.25 | r/renpy | comment | r/RenPy | 2024-29-08 |
This is a little tricky to do well, as you have to contol whether each of the "+" and "-" buttons are sensitive based on the current value of the stat and the number of points spent. You can do that explicitly in the button definition, or you can do it via the button's action.
I've done this for a Chaosium BRP style s... | r/renpy | comment | r/RenPy | 2024-30-08 |
Thank you for your answer. Yes, all variables are defined at the start, although I used "define" instead of "default".
The variables themselves work fine. I added a line of dialogue between the show statements to test that and, sure enough, they appear one at a time with expected value. They just disappear as soon as ... | r/renpy | comment | r/RenPy | 2024-30-08 |
Yeah “default” is meant to allow the variable to change in any kind of way, whereas “define” is meant to never change the variable. | r/renpy | comment | r/RenPy | 2024-30-08 |
Ok, so after reading your post again, I’ll provide an explanation on how I made a system to put points into any of the variables. I did not use imagebuttons though. | r/renpy | comment | r/RenPy | 2024-30-08 |
ok, so first, I made the code that allows you to increase the stat number, which also decreases the Total Points.
If you do add some kind of buttons (one for increasing, and one for decreasing/refunding the points), that would be more accurate.
What I made is a simple menu to constantly increase stats until yo... | r/renpy | comment | r/RenPy | 2024-30-08 |
the first if statement checks to see if the number is less than or equal to 0, then the total points is now 0.
The second if statement checks to see if the points is greater than 0, then you get taken back to the label to select another stat to increase.
The third if statement checks to see if the total\_points... | r/renpy | comment | r/RenPy | 2024-30-08 |
in order to display your stats, you do this:
screen Total_Points:
add "UI/stats_background.png"
text "Total Points = [total_points]"
frame:
xalign 0.0
yalign 0.5
xpadding 30
ypadding 30
hbox:
spacing 40
... | r/renpy | comment | r/RenPy | 2024-30-08 |
what this does is displays a frame to have them inside of. The first vbox provides the words for each stat. The second vbox provides the stats values. | r/renpy | comment | r/RenPy | 2024-30-08 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.