Search found 263 matches

by RicharDann
Thu Feb 13, 2020 4:46 pm
Forum: Ren'Py Questions and Announcements
Topic: Saving and Loading Information Stops Working?
Replies: 4
Views: 441

Re: Saving and Loading Information Stops Working?

Most of the time (in my experience), save and loading problems have to do with the way you define your variables. It's very hard to know for sure just by looking at the code you posted. How did you define your map_point variable? For a system like this it probably should be initialized with default ...
by RicharDann
Tue Feb 11, 2020 3:23 pm
Forum: Ren'Py Questions and Announcements
Topic: ATLTransform on imagebutton hover not working
Replies: 4
Views: 363

Re: ATLTransform on imagebutton hover not working

This is only a guess but I think that the cropping process is somehow interfering with the method Ren'Py uses to detect if the button is being hovered. Maybe because it changes the visibility or position of the image at the same time as the program is trying to see if the mouse is over it or not. I ...
by RicharDann
Tue Feb 11, 2020 10:33 am
Forum: Ren'Py Questions and Announcements
Topic: ATLTransform on imagebutton hover not working
Replies: 4
Views: 363

Re: ATLTransform on imagebutton hover not working

According to the documentation here: https://renpy.org/dev-doc/html/screens.html#button says that the hovered property expects an action, or a list of actions, not an ATL transform, that could be the cause of the error. You could try adding a hover clause to your transform: transform choicehover(): ...
by RicharDann
Mon Feb 10, 2020 4:31 pm
Forum: Ren'Py Questions and Announcements
Topic: [help] inventory with images
Replies: 4
Views: 354

Re: [help] inventory with images

Add an image attribute to your Item class, then when you create your items, fill it with the corresponding image: class Item(object): def __init__(self, name, image, **kwargs): self.name = name self.image = image default rose = Item("Rose", "rose.png") Then you can show it in your inventory_screen w...
by RicharDann
Sun Feb 02, 2020 11:41 am
Forum: Ren'Py Questions and Announcements
Topic: Beginner can't figure out Inventory system error
Replies: 2
Views: 316

Re: Beginner can't figure out Inventory system error

In this line:

Code: Select all

$ inventory_list.append("burger")
You're appending the string "burger" to the inventory, which is the unicode object the error is talking about.
You need to append the burger object itself:

Code: Select all

$ inventory_list.append(burger)
by RicharDann
Wed Jan 22, 2020 11:37 am
Forum: Ren'Py Questions and Announcements
Topic: Re: Local variable referenced before assignment [SOLVED]
Replies: 4
Views: 329

Re: Local variable referenced before assignment

If you want different functions to affect the same variables, you'll want to make them global instead of local, by creating them with default statement. # initialize/create the variables default mix1 = None default mix2 = None default selected_item = None init python: def MixItems(): global mix1, mi...
by RicharDann
Thu Jan 16, 2020 12:09 pm
Forum: Ren'Py Questions and Announcements
Topic: For loops, list, and screens
Replies: 4
Views: 384

Re: For loops, list, and screens

In your code, you're passing your list name as a string object, hence the error. Instead, you need to pass the list or set name directly:

Code: Select all

textbutton "Apple" action AddToSet(my_list, "Apple")
by RicharDann
Wed Jan 15, 2020 3:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Changing other variables inside a class
Replies: 4
Views: 619

Re: Changing other variables inside a class

Not to take away from what has been discussed, but thought I'd explain a possible reason why the "aLoc" variable isn't being updated inside the function. Python functions make use of local and global variables, locals being the ones defined "inside" a function, and globals being those defined outsid...
by RicharDann
Fri Jan 10, 2020 11:38 am
Forum: Ren'Py Questions and Announcements
Topic: Different coloured text boxes for normal and NVL (Solved)
Replies: 2
Views: 274

Re: Different coloured text boxes for normal and NVL

The background image of the NVL textbox is by default a png image, located on your game project folder, "gui/nvl.png", so you can just swap it for a black one (get it from another project with black ui, like the Tutorial, or a new project). You can change this in screens.rpy in the style for nvl_win...
by RicharDann
Thu Jan 09, 2020 4:17 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Personnalise dialog window and specific "dialogue_width"
Replies: 2
Views: 261

Re: Personnalise dialog window and specific "dialogue_width"

Try using what_xsize or what_xmaximum instead of dialogue_width, one of those should be a valid parameter to change the width of the text.
by RicharDann
Thu Dec 26, 2019 10:04 am
Forum: Ren'Py Questions and Announcements
Topic: Dialogue speed preview
Replies: 10
Views: 702

Re: Dialogue speed preview

From my understanding, this method works precisely because the text is being removed and then shown again. This is because slow text is designed to displayed only once per screen, since it's intended use is for dialogue, so there's no way to "reset" it without hiding it first that I know of. What yo...
by RicharDann
Tue Dec 24, 2019 10:11 am
Forum: Ren'Py Questions and Announcements
Topic: Dialogue speed preview
Replies: 10
Views: 702

Re: Dialogue speed preview

You might not need to use a while loop, you can just set the timer property repeat to True, so that it effectively loops:

Code: Select all

    timer 2.0 repeat True action Show("text_test")
    timer 5.0 repeat True action Hide("text_test")
by RicharDann
Wed Dec 18, 2019 1:16 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Placing Dialog in a different screen?
Replies: 5
Views: 424

Re: Placing Dialog in a different screen?

You can pass arguments to a screen so it can be reused many times. Can't test it out now but try modifying your screen like this (the code is untested!): screen text_cut(txt): zorder3 text txt xalign .5 ypos .95 Then you can use the function equivalent of show screen , which is renpy.show_screen() t...
by RicharDann
Sun Oct 06, 2019 7:47 am
Forum: Ren'Py Questions and Announcements
Topic: Adding choices selected to History without showing to user
Replies: 12
Views: 1519

Re: Adding choices selected to History without showing to user

Just wanted to say thank you so much to SleepKirby for sharing your code, I was having a hard time figuring out how to create HistoryEntry objects and update _history_list, the Docs are still not very clear about this. This code gave me the clue I needed and thus saved me a great deal of headache. T...
by RicharDann
Thu Oct 03, 2019 12:37 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Display Framerate (In FPS) In A Ren'Py Game
Replies: 4
Views: 660

Re: Display Framerate (In FPS) In A Ren'Py Game

You could just run Fraps and then your game (Fraps should be able to detect and overlay the framerate in Ren'Py). If you want to do from Ren'Py itself in realtime, I guess you could maybe do this (UNTESTED): screen fps_display(): $ frames = renpy.get_refresh_rate() text "[frames]" timer 1 repeat Tru...