Search found 21 matches

by Frost Mage
Thu Apr 09, 2020 12:57 pm
Forum: Ren'Py Questions and Announcements
Topic: Testing control flow?
Replies: 1
Views: 238

Testing control flow?

So the game I am making has dungeon crawl elements that make the control flow logic rather complex. I am wondering if there are any tools to "auto-run" the game so I can test if certain paths works as expected or to check for unintended fringe cases. I am looking into tools for testing pyt...
by Frost Mage
Sat Mar 28, 2020 3:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Custom displayable - child not rendering, no errors [SOLVED]
Replies: 2
Views: 274

Re: Custom displayable - child not rendering, no errors

Aw, thank you, that was part of the problem. I also had to drop ".png" from the file name. Should have read the docs more carefully.
by Frost Mage
Sat Mar 28, 2020 1:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Custom displayable - child not rendering, no errors [SOLVED]
Replies: 2
Views: 274

Custom displayable - child not rendering, no errors [SOLVED]

So I simply want a child object (sword.png) to display at the center of the parent, which takes up the whole screen. I have made sure that sword.png can be called with a show, so I am pretty sure this is not a file issue. I get no errors and my code prints to the console as expected. class SwordMini...
by Frost Mage
Thu Mar 26, 2020 8:18 pm
Forum: Ren'Py Questions and Announcements
Topic: what is store.variable and why should I use it?
Replies: 4
Views: 465

Re: what is store.variable and why should I use it?

Thank you very much, that was very helpful. So if I am understanding this correctly, "store" is a global namespace defined by renpy that can be used to store your custom objects?
by Frost Mage
Wed Mar 25, 2020 4:34 pm
Forum: Ren'Py Questions and Announcements
Topic: what is store.variable and why should I use it?
Replies: 4
Views: 465

Re: what is store.variable and why should I use it?

Aw, thank you. Do you have a webpage on the topic you could link? It seems to be a hard thing to search since most results are about the general concept of storing data in python.
by Frost Mage
Wed Mar 25, 2020 4:01 pm
Forum: Ren'Py Questions and Announcements
Topic: what is store.variable and why should I use it?
Replies: 4
Views: 465

what is store.variable and why should I use it?

I have noticed in several places in the docs, there will be code like this: def repulsor_event(ev, x, y, st): store.repulsor_pos = (x, y) I do not understand what "store." means here, and a morning of searching both the docs and wider internet has yielded no results. I am sorry if this is ...
by Frost Mage
Fri Mar 20, 2020 6:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Not a displayable when trying to run custom displayable [SOLVED]
Replies: 4
Views: 435

Re: Not a displayable when trying to run custom displayable

Upon further reflection I think it would be best to do what I am trying to do with higher level functions and return to custom displayables when I have more experience with raw python and pygame. Will mark as solved for now, thank you for your help.
by Frost Mage
Thu Mar 19, 2020 10:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Not a displayable when trying to run custom displayable [SOLVED]
Replies: 4
Views: 435

Re: Not a displayable when trying to run custom displayable

Hmmm, I tried that, but now I am getting a new error: I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 23, in script menu: AttributeError: 'int' object has no attribute 'visit_all' -- Full Traceback ---------------------------------------...
by Frost Mage
Thu Mar 19, 2020 2:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Not a displayable when trying to run custom displayable [SOLVED]
Replies: 4
Views: 435

Not a displayable when trying to run custom displayable [SOLVED]

I am trying to create a simple custom displayable by following the docs https://www.renpy.org/doc/html/udd.html?#renpy-displayable I seem to have run into a problem and am not sure what is going wrong. This error message displays: I'm sorry, but an uncaught exception occurred. While running game cod...
by Frost Mage
Tue Mar 17, 2020 9:04 am
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to create macros with renpy? [SOLVED]
Replies: 10
Views: 764

Re: Is there a way to create macros with renpy?

Thank you so much! That was exactly what I needed. You all have been very helpful here, I really appreciate it. Here is the working code if anyone else has the same problem. transform door01: "bg door01" with fade 0.5 "bg door02" with dissolve image bg door: contains door01 label...
by Frost Mage
Mon Mar 16, 2020 6:44 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to create macros with renpy? [SOLVED]
Replies: 10
Views: 764

Re: Is there a way to create macros with renpy?

Okay, so I think I have narrowed down the problem. If I call show bg door right before a jump show bg door jump a07 The scene associated with the new label will display over the door animation. If I flip the order, the door animation will play over the new background. What I want to have have happen...
by Frost Mage
Mon Mar 16, 2020 6:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to create macros with renpy? [SOLVED]
Replies: 10
Views: 764

Re: Is there a way to create macros with renpy?

No, I was just printing to the console to check if the ATL had been run. Here is some extra information I just discovered, if i run show bg door01 under label start, the screen fades from black to door02.
by Frost Mage
Mon Mar 16, 2020 6:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to create macros with renpy? [SOLVED]
Replies: 10
Views: 764

Re: Is there a way to create macros with renpy?

Hmmm, still no luck. Same behavior with that code. I will keep trying to isolate the problem. Is there anything else I could try
by Frost Mage
Mon Mar 16, 2020 5:36 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to create macros with renpy? [SOLVED]
Replies: 10
Views: 764

Re: Is there a way to create macros with renpy?

Thanks, that was what I was looking for in this case. Follow up question though, the following code does not trigger any errors, but the transition simply does not happen. I know it is getting called because I can see the print statement in the console when it is triggered, but nothing happens. Any ...
by Frost Mage
Mon Mar 16, 2020 2:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Is there a way to create macros with renpy? [SOLVED]
Replies: 10
Views: 764

Is there a way to create macros with renpy? [SOLVED]

I checked the docs, but I did not see anything on creating macros in renpy. For example, if I have this code: scene bg hall01 with fade scene bg hall02 with dissolve scene bg hall03 with dissolve is there a way I could just type halltransition in my script and have renpy replace the that with the ab...