Search found 6 matches

by orang310
Fri Jan 07, 2022 6:19 pm
Forum: Ren'Py Questions and Announcements
Topic: How to jump when my variable reaches 0
Replies: 5
Views: 343

Re: How to jump when my variable reaches 0

My screen is hidden when it can be hidden. It doesn't jump to badend constantly but whenever health reaches 0 I just get this error instead of bringing me to the label
by orang310
Thu Jan 06, 2022 11:45 pm
Forum: Ren'Py Questions and Announcements
Topic: How to jump when my variable reaches 0
Replies: 5
Views: 343

Re: How to jump when my variable reaches 0

You can use either python equivalent of Ren'Py statement $ renpy.jump('label_name') or use screen action with timer, like timer 0.01 action [Jump('label_name'), Hide('screen_name')] or use action as it is (just add an extra pair of empty brackets) $ Jump('label_name')() (the second option is prefer...
by orang310
Thu Jan 06, 2022 10:11 pm
Forum: Ren'Py Questions and Announcements
Topic: How to jump when my variable reaches 0
Replies: 5
Views: 343

How to jump when my variable reaches 0

I want to make it so when the health variable reaches 0, I jump to the label "badend1" First I tried this screen healthBar(): if health == 5: add "5 health.jpg": yalign 0.7 elif health == 4: add "4 health.jpg": yalign 0.7 elif health == 3: add "3 health.jpg": ...
by orang310
Thu Jan 06, 2022 7:54 pm
Forum: Ren'Py Questions and Announcements
Topic: "I'm sorry but an uncaught exception occured." In my screen
Replies: 3
Views: 280

Re: "I'm sorry but an uncaught exception occured." In my screen

Ok, I fixed that but now I have a new issue. I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 86, in script window hide File "renpy/common/000window.rpy", line 169, in execute_window_hide _window_hide(trans) File "renpy/com...
by orang310
Thu Jan 06, 2022 7:48 pm
Forum: Ren'Py Questions and Announcements
Topic: "I'm sorry but an uncaught exception occured." In my screen
Replies: 3
Views: 280

Re: "I'm sorry but an uncaught exception occured." In my screen

Ocelot wrote: Thu Jan 06, 2022 7:34 pm X = Y — set X to the value of Y
X == Y — compare X and Y for equality.
This worked, thanks!
by orang310
Thu Jan 06, 2022 7:29 pm
Forum: Ren'Py Questions and Announcements
Topic: "I'm sorry but an uncaught exception occured." In my screen
Replies: 3
Views: 280

"I'm sorry but an uncaught exception occured." In my screen

I'm trying to make a basic health bar with 5 different staged but I'm having some trouble Error: I'm sorry, but an uncaught exception occurred. After initialization, but before game start. File "game/myscreens.rpy", line 15, in analyze_screen screen healthBar(): File "game/myscreens.r...