Search found 996 matches
- 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: 3
- Views: 138
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...
- Wed May 08, 2024 2:33 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Want to add text to a (image)button
- Replies: 4
- Views: 75
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...
- Wed May 08, 2024 9:18 am
- Forum: Ren'Py Questions and Announcements
- Topic: Question about choices that make changes to the background
- Replies: 1
- Views: 103
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...
- Wed May 08, 2024 9:04 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to add images to inventory grid?
- Replies: 1
- Views: 105
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...
- 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: 3
- Views: 138
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...
- Wed May 08, 2024 8:33 am
- Forum: Ren'Py Questions and Announcements
- Topic: Want to add text to a (image)button
- Replies: 4
- Views: 75
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 ...
- Tue May 07, 2024 7:55 am
- Forum: Ren'Py Questions and Announcements
- Topic: Problem with screen action "Hide" (and layers ?)
- Replies: 5
- Views: 219
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...
- 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: 718
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...
- 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: 718
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...
- Sun May 05, 2024 6:11 am
- Forum: Ren'Py Questions and Announcements
- Topic: Annoying script error
- Replies: 2
- Views: 210
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...
- Sun May 05, 2024 5:54 am
- Forum: Ren'Py Questions and Announcements
- Topic: Problems with translation in image composite Text
- Replies: 3
- Views: 201
- Fri May 03, 2024 6:39 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]How to make a number positive
- Replies: 3
- Views: 190
Re: How to make a number positive
Thank you. Turns out I was just confused about the brackets. If((((coocker_posy>0.41)or(coocker_posy<0.39))and(abs(food1_pos-coocker_posx)<0.10)), Not sure if you're a former LISP coder, but you don't need that many brackets. So you are not getting confused as easily. ^^ if (coocker_posy > 0.41 or ...
- Fri May 03, 2024 4:47 am
- Forum: Ren'Py Questions and Announcements
- Topic: Help with buttons with multiple components.
- Replies: 1
- Views: 136
Re: Help with buttons with multiple components.
Thanks in advance if there is any way of solving this, I'm a self-taught coder so this has gone beyond my skillset a bit, and I can't find a good tutorial on just buttons on Youtube or anywhere, everybody is using text or image buttons there which I understand. So I am missing your actual question ...
- Fri May 03, 2024 4:04 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]How to make a number positive
- Replies: 3
- Views: 190
Re: How to make a number positive
I'm making a mini game in a visual novel. I have an object moving on the screen. And there is a second object that the player controls. If the difference between the coordinates of the first and the second object is small, the player loses. The difference between the objects can be either positive ...
- Thu May 02, 2024 3:15 am
- Forum: Ren'Py Questions and Announcements
- Topic: Choice menu not repositioning
- Replies: 1
- Views: 138
Re: Choice menu not repositioning
Hello, I'm trying to change how choice menus appear, and while I successfully did it in one project, I can't replicate it in the other. I want the choice box to be horizontal and low on the screen. Mine, however, is sticking to the top no matter what I do. Here are the edits I made in screens.rpy s...