Search found 1000 matches

by m_from_space
Thu May 09, 2024 12:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause
Replies: 7
Views: 208

Re: Yo Dawg, I Heard You Like Pauses - Screen Timer + renpy.pause

So my way to show some message to the player while not wanting the player to continue, would be to call a modal screen and use a timer to automatically return from that screen. screen show_message(msg, t=3.0) modal True text "[msg]" align (0.5, 0.5) timer t action Return() label start: &qu...
by m_from_space
Thu May 09, 2024 11:55 am
Forum: Ren'Py Questions and Announcements
Topic: How can I reuse the screens?
Replies: 4
Views: 182

Re: How can I reuse the screens?

How can I make all screens (left panel, content panel and imagebutton) appear for each searched word? The imagebuttons are the same (because they are part of the browser), while the panels change for each word (left panel will show 5 possible results for each word, while the content panel will only...
by m_from_space
Thu May 09, 2024 11:44 am
Forum: Ren'Py Questions and Announcements
Topic: Map where you cannot go to the same place multiple times
Replies: 8
Views: 314

Re: Map where you cannot go to the same place multiple times

For one I have the code like this (I called it custom_screens.rpy based on the tutorial): In general your code looks fine regarding my suggestions. But two issues: 1) The Jump("house1_pressed") should also have a label with that name, you just used my label name from the example which is ...
by m_from_space
Thu May 09, 2024 11:27 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Variable as a part of another variable's name?
Replies: 9
Views: 307

Re: Variable as a part of another variable's name?

I was looking for that and I found this post with the same question, but I didn't understand exactly how that works. When you create a variable in Renpy script language using the keyword "default", Renpy will then create an attribute of that name inside its "store" object. So fo...
by m_from_space
Wed May 08, 2024 2:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Map where you cannot go to the same place multiple times
Replies: 8
Views: 314

Re: Map where you cannot go to the same place multiple times

Hi, thank you for your response! Unfortunately I'm too green to be able to implement your example in my own code. I tried copy pasting it exactly for example and nothing is changing. I don't understand how variables work to adapt it to my code :(. I appreciate any help. Can you show me your relevan...
by m_from_space
Wed May 08, 2024 2:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Want to add text to a (image)button
Replies: 5
Views: 168

Re: Want to add text to a (image)button

I can use the fixed: method too, where I have an imagebutton & textbutton as children, but same issue as it is with the button method, nothing shows. No errors, no nothing. Well, I guess there is no data / dict inside "wardrobe.top_unlock" that it can iterate over. Maybe post your cla...
by m_from_space
Wed May 08, 2024 9:18 am
Forum: Ren'Py Questions and Announcements
Topic: Question about choices that make changes to the background
Replies: 2
Views: 213

Re: Question about choices that make changes to the background

I just hope that someone can help me. Hey, so there are different approaches here. The easiest way is to just store the choice inside a variable that you then use as the background. Since you are new, let me tell you something about images in Renpy: all images inside the "game/images" fol...
by m_from_space
Wed May 08, 2024 9:04 am
Forum: Ren'Py Questions and Announcements
Topic: How to add images to inventory grid?
Replies: 2
Views: 179

Re: How to add images to inventory grid?

What I want to do is have an image button of a health potion, hovering it gives a tooltip of what it does, and clicking it will increase health and remove 1 health potion. How far have you come trying to create this for now? I mean what's the exact issue you have? So here is how you create an image...
by m_from_space
Wed May 08, 2024 8:48 am
Forum: Ren'Py Questions and Announcements
Topic: Map where you cannot go to the same place multiple times
Replies: 8
Views: 314

Re: Map where you cannot go to the same place multiple times

I know how to remove choices with a menu choice, but not how to do it with buttons. Any assistance? You just have to save what was visited either in a single variable or a list or whatnot and then check for that condition inside of the screen. An example (which also works for imagebuttons in the sa...
by m_from_space
Wed May 08, 2024 8:33 am
Forum: Ren'Py Questions and Announcements
Topic: Want to add text to a (image)button
Replies: 5
Views: 168

Re: Want to add text to a (image)button

I am trying to add the cost of clothing to my shop, alongside an image. I've tried the fixed and button methods shown in both images, but nothing happens. no images, buttons, or text are displayed. Your imagebuttons inside the grid use the contents of the loop variable "key" as the image ...
by m_from_space
Tue May 07, 2024 7:55 am
Forum: Ren'Py Questions and Announcements
Topic: Problem with screen action "Hide" (and layers ?)
Replies: 5
Views: 259

Re: Problem with screen action "Hide" (and layers ?)

Thing is, I noticed that jumping to a label hides the screens, ... That is only true if you called the screen in question, instead of just showing it. There is no need to put it on another layer, it makes things more complicated in my opinion. Screens should be shown on the screens layer, not elsew...
by m_from_space
Mon May 06, 2024 5:21 am
Forum: Ren'Py Questions and Announcements
Topic: Eyes following the mouse cursor in the main menu.
Replies: 7
Views: 748

Re: Eyes following the mouse cursor in the main menu.

Hello, did it work? If so, could you please share the code? I need the same thing, but I'm not good enough in coding for this. Here is a very simple way of doing it, just put the image into your images folder for that. You can of course add another eyeball, figuring that out should be a little lear...
by m_from_space
Mon May 06, 2024 4:46 am
Forum: Ren'Py Questions and Announcements
Topic: Eyes following the mouse cursor in the main menu.
Replies: 7
Views: 748

Re: Eyes following the mouse cursor in the main menu.

. init python: eye_angle = 0 screen Eyes(): add "eyes.png" # Replace "eyes.png" with the name of your eye sprite timer 0.1 repeat True action Jump("update_eye_angle") label update_eye_angle: python: mouse_x, mouse_y = renpy.get_mouse_pos() eye_x, eye_y = # Eye center c...
by m_from_space
Sun May 05, 2024 6:11 am
Forum: Ren'Py Questions and Announcements
Topic: Annoying script error
Replies: 4
Views: 269

Re: Annoying script error

https://github.com/overlordofflies/court_record The reason it does work when not changing anything is, that it uses the precompiled .rpyc files when executing. As soon as you edit anything, it will try to recompiling the game and result in the error. The error is due to the code not being proper an...
by m_from_space
Sun May 05, 2024 5:54 am
Forum: Ren'Py Questions and Announcements
Topic: Problems with translation in image composite Text
Replies: 3
Views: 210

Re: Problems with translation in image composite Text

philat wrote: Sun May 05, 2024 3:16 am I'm unable to reproduce this.
Works fine on my end as well, even using @thelastsecret's exact string (I mean it could have been an issue with some characters).