Search found 391 matches
- Thu Jul 14, 2022 5:15 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Adding tint to the image based on the variable
- Replies: 4
- Views: 248
Re: Adding tint to the image based on the variable
Potentially I could create a variable in the init to make it work, but I can't shake the feeling that this solution smells some problems later. init python: if 'chosen_color' not in globals(): chosen_color = "#ffa" image mc_outfit: "mc_[outfit].png" matrixcolor TintMatrix(chosen_color) Especially, t...
- Thu Jul 14, 2022 3:46 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Adding tint to the image based on the variable
- Replies: 4
- Views: 248
[SOLVED] Adding tint to the image based on the variable
Hello, All, I am trying to figure out if there is a way to pass a variable to the transform in the dynamic image. For example, use a variable to pass color to TintMatrix . Let's say we have dynamic image: image mc_outfit = "mc_[outfit].png" Changing the variable outfit we can change the image mc_ou...
- Wed Jun 22, 2022 10:35 pm
- Forum: Ren'Py Questions and Announcements
- Topic: New script file has been replaced by older script saves???
- Replies: 7
- Views: 270
Re: New script file has been replaced by older script saves???
Did you try Force Recompile in the renpy launcher?
If your rpy files are ok, the problem could be in the rpyc.
If your rpy files are ok, the problem could be in the rpyc.
- Fri Jun 17, 2022 11:38 am
- Forum: Ren'Py Questions and Announcements
- Topic: Different 'on hide' transform depending on button clicked
- Replies: 7
- Views: 267
Re: Different 'on hide' transform depending on button clicked
Aha. Well, remember that transforms are just functions, and you can assign functions to variables and return them from methods. When screens get complicated, it can be useful to offload logic into a python controller class -- that is, to start implementing the Model-View-Controller pattern. Great. ...
- Thu Jun 16, 2022 11:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Different 'on hide' transform depending on button clicked
- Replies: 7
- Views: 267
Re: Different 'on hide' transform depending on button clicked
you can use [With(moveoutright), Return()]. Transition is applied to the whole screen, I believe. I like it, but the intention was to apply animation "on hide" only for one child of the screen. Does this help? I don't think it will help in the way I'm trying to do it, but maybe it will help if I tr...
- Thu Jun 16, 2022 9:43 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Different 'on hide' transform depending on button clicked
- Replies: 7
- Views: 267
Re: Different 'on hide' transform depending on button clicked
No, it does not work like this. I believe renpy updates the screen after all actions and only if the control is not passed somewhere else.Gouvernathor wrote: ↑Thu Jun 16, 2022 6:52 pmHave you tried using [SetScreenVariable(...), Return()] as an action (list) ?
- Thu Jun 16, 2022 5:17 pm
- Forum: Ren'Py Questions and Announcements
- Topic: characters role?
- Replies: 4
- Views: 232
Re: characters role?
Some time ago I saw a visual novel where the player had to write the role that characters would take instead of selecting it from some menu That is possible. Check the input . However, if you would like to do some logic based on what the player typed that would be a different story. It is better to...
- Thu Jun 16, 2022 4:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to remove imagebutton(s) after selected
- Replies: 5
- Views: 225
Re: How to remove imagebutton(s) after selected
You also have a problem with logic in your example. You probably want something like this: label rewards: if picked_one and picked_two and picked_three: "You picked all three gifts!" jump continuing # else call screen gift_selection label get_gift_one: "You picked the gift 01!" jump rewards label ge...
- Thu Jun 16, 2022 4:31 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to remove imagebutton(s) after selected
- Replies: 5
- Views: 225
Re: How to remove imagebutton(s) after selected
Code: Select all
imagebutton:
idle "button1.png"
action [SetVariable('picked_one', True), Jump('get_gift_one')]
- Thu Jun 16, 2022 4:22 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Different 'on hide' transform depending on button clicked
- Replies: 7
- Views: 267
Different 'on hide' transform depending on button clicked
Hello everyone , I have a screen that is supposed to have different transform animation 'on hide' depending on what the user selects: transform hide_left: on hide: xalign 0.5 yalian 0.5 linear xoffset -1000 alpha 0.0 transform hide_right: on hide: xalign 0.5 yalian 0.5 linear xoffset +1000 alpha 0....
- Thu Jun 16, 2022 3:38 pm
- Forum: Ren'Py Questions and Announcements
- Topic: characters role?
- Replies: 4
- Views: 232
Re: characters role?
I believe you want the player to select one of the pre-defined roles. You can use for example in-game menu : default mc_role = 'Archer' label start: menu: "Select your role?" "Archer.": $ mc_role = 'Archer' "Wizard.": $ mc_role = 'Wizard' "Your character role is [mc_role]" You can use if statements ...
- Wed Jun 15, 2022 9:20 pm
- Forum: Ren'Py Questions and Announcements
- Topic: hbox: distribute its children to all available xsize
- Replies: 2
- Views: 252
Re: hbox: distribute its children to all available xsize
PyTom,PyTom wrote: ↑Wed Jun 15, 2022 7:21 pmI'm treating this as a feature request, and tracking it at https://github.com/renpy/renpy/issues/3666
Thank you!
I truly appreciate the time and effort you put into doing an excellent job with Ren'Py!
- Wed Jun 15, 2022 1:32 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Custom transition help?
- Replies: 3
- Views: 249
Re: Custom transition help?
So I have one sprite that is essentially a closeup of a character's face, and I want to make it look like they are jumping back to a normal sprite from that position. I tried doing something along those lines, but I was struggling to make it work for me. I am not sure if using two sprites actually ...
- Wed Jun 15, 2022 1:09 pm
- Forum: Ren'Py Questions and Announcements
- Topic: hbox: distribute its children to all available xsize
- Replies: 2
- Views: 252
hbox: distribute its children to all available xsize
Hi, everyone! What is the proper way to distribute hbox children to all available x_size. I would like to have the following: border element1 spacing element2 spacing element3 border with spacing calculated automatically. If I simply use: hbox: xfill True it adds additional spacing after the last el...
- Mon Jun 13, 2022 10:50 pm
- Forum: Creator Discussion
- Topic: Inspiration for games
- Replies: 4
- Views: 1173
Re: Inspiration for games
I think it depends on the person and environment. What is good for one person does not work for someone else. It is all about how our brain works. Personally, in my mind, I often have some alternative ideas whenever I watch a movie, read a book, play a game, talk to people, etc. Books or visual nove...