Search found 3649 matches

by trooper6
Thu Jun 18, 2020 12:57 pm
Forum: Ren'Py Questions and Announcements
Topic: Creating a 'smart' Inventory by comparing lists (using Python) ...
Replies: 3
Views: 236

Re: Creating a 'smart' Inventory by comparing lists (using Python) ...

You might want to look into Layered images, because layered images are set up with tags and swap layers out. It is newer than Dynamic Displayables and might be useful. I don't have time to make the code for you (I'm moving soon)...but I'd encourage you to just check out the docs I link below, make a...
by trooper6
Wed Jun 17, 2020 4:04 pm
Forum: Ren'Py Questions and Announcements
Topic: What's wrong with my python loop?
Replies: 5
Views: 204

Re: What's wrong with my python loop?

For loops are totally fine in screens and used all the time...I'm just not certain about while loops considering screens refresh regularly.
by trooper6
Wed Jun 17, 2020 3:38 am
Forum: Ren'Py Questions and Announcements
Topic: Textbutton Image?
Replies: 7
Views: 206

Re: Textbutton Image?

Thanks trooper6 So, is it the only way? I mean I'll need too many screens Could you give more information about what the actual use case is? Because there may be more efficient ways to do what you want. Also you can pass a variable to a screen, for example, you could pass an image to that screen. S...
by trooper6
Tue Jun 16, 2020 11:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Textbutton Image?
Replies: 7
Views: 206

Re: Textbutton Image?

Create a screen that has the image on it. Have the button show the screen.
by trooper6
Wed Jun 10, 2020 2:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Is this possible?
Replies: 10
Views: 170

Re: Is this possible?

I don't think they'd need to know javascript, but python will definitely be a thing. Probably a User Defined Displayable.
by trooper6
Sat Jun 06, 2020 3:12 am
Forum: Ren'Py Cookbook
Topic: Imagebutton GUI Framework [GxImagebuttons]
Replies: 104
Views: 59942

Re: Imagebutton GUI Framework [GxImagebuttons]

Thanks for the kind words!
by trooper6
Wed May 20, 2020 5:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Imagebutton action
Replies: 14
Views: 342

Re: Imagebutton action

isobellesophia wrote:
Wed May 20, 2020 8:49 am
I think you need to define first.

Code: Select all

$ thevariable = "hello"
Variables should not be defined this way. This will cause problems with save and rollback.
Variables should be defined:

Code: Select all

default thevariable = "hello"
Outside of a code block.
by trooper6
Fri May 15, 2020 11:55 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] marking previously made choices - but not persistent
Replies: 7
Views: 263

Re: marking previously made choices - but not persistent

How exactly are you coding this?

Also is your concern the variable being saved within a game (normal behavior) or carrying over into a new game (persistent behavior)?

Variables are not persistent by default. You have to define them that way. So...could you share some of your actual code?
by trooper6
Fri May 15, 2020 1:54 am
Forum: Ren'Py Questions and Announcements
Topic: Character understanding
Replies: 3
Views: 243

Re: Character understanding

Also you shouldn't name different things the same.
So you should not have a character named e and a sprite named e. That will lead to problems.

So if your character is called e, then name your sprite eileen, or whatever.
by trooper6
Tue May 12, 2020 5:52 pm
Forum: Ren'Py Questions and Announcements
Topic: Timer using persistent data [HELP]
Replies: 8
Views: 355

Re: Timer using persistent data [HELP]

I think you are taking the wrong approach. You don't actually need a timer going like that. You just need to import python's date time module, Put the starting date time in a persistent variable when the player starts the game and then whenever the game is up, check the real time against that origin...
by trooper6
Tue May 12, 2020 1:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Buttons and Doors
Replies: 15
Views: 477

Re: Buttons and Doors

I was unable to run the "imagebotton" example that was located on this page here: viewtopic.php?t=22565 Can anyone understand why I got this error? Thank you, in advance, for your help... :D ``` I'm sorry, but an uncaught exception occurred. While running game code: File "game/example.rpy", line 11...
by trooper6
Mon May 11, 2020 11:43 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Exec() not running in renpy
Replies: 14
Views: 235

Re: Exec() not running in renpy

Might this better be done in Python rather than Renpy?
by trooper6
Sun May 10, 2020 6:11 pm
Forum: General Discussion
Topic: I’m writing a thesis on visual novels and it's quite a mess right now.
Replies: 2
Views: 623

Re: I’m writing a thesis on visual novels and it's quite a mess right now.

As a Humanities professor, the first thing I would ask is: what is your argument? The history of VNs isn’t an argument, it is an overview. What field are you writing this thesis in? History? Computer Science? Sociology? Literature? In which country? Each field and each has different country has slig...
by trooper6
Sun May 10, 2020 5:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Having trouble with lines of dialogue changing based on previous choices made by player...
Replies: 4
Views: 182

Re: Having trouble with lines of dialogue changing based on previous choices made by player...

Do not use persistent unless you know exactly what it does and specifically want that functionality. Persistent isn’t just a way to have your choice remembered. What gas posted does that. Persistent is to remember choices between games, not just within a game. Often this is not what you want. For ex...
by trooper6
Fri May 08, 2020 12:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Out of Memory
Replies: 11
Views: 461

Re: Out of Memory

The OP is using the Movie Sprite functionality, documented here: https://www.renpy.org/doc/html/movie.html?highlight=movie%20sprites#movie-displayables-and-movie-sprites So using movie sprites shouldn’t be a problem in and of itself. Do they all have the same frame rate? The documentation says that ...