Search found 1853 matches
- Fri May 20, 2022 8:58 pm
- Forum: Ren'Py Questions and Announcements
- Topic: (Solved) How to combine "zorder" with the Function command
- Replies: 8
- Views: 271
Re: How to combine "zorder" with the Function command
screen profile(char): default pic= 1 vbox: hbox: textbutton "1" action SetScreenVariable("pic", "01") textbutton "2" action SetScreenVariable("pic", "02") textbutton "3" action SetScreenVariable("pic", "03") add "{}_profile_pic_{}".format(char, pic) label start: show screen profile("jenny")
- Fri May 20, 2022 12:44 pm
- Forum: Ren'Py Questions and Announcements
- Topic: (Solved) How to combine "zorder" with the Function command
- Replies: 8
- Views: 271
Re: How to combine "zorder" with the Function command
Any reason you're not using add (screen language) and trying to use show (renpy statement)?
- Sun May 15, 2022 10:27 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to get an object's own position?
- Replies: 9
- Views: 568
Re: How to get an object's own position?
I tried passing the coordinates from the button itself as an argument for testMenu2(coordinates), like this: ToggleScreen("test2", renpy.focus_coordinates()), but RenPy just throws "TypeError: 'tuple' object is not callable". The second argument is transition. ToggleScreen("test2", transition=None,...
- Fri Apr 29, 2022 12:24 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Should I use Classes to do this?
- Replies: 8
- Views: 392
Re: Should I use Classes to do this?
Each class should have a generic "use" method that can refer to the various instances you would need to calculate the outcome. E.g. very barebones example below: you would use Function(light_attack.play, enemyunit) to trigger the play method of a light_attack Card instance with a reference to a Unit...
- Wed Apr 20, 2022 10:20 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Pausing and resuming music and sound in menu screens
- Replies: 4
- Views: 430
Re: Pausing and resuming music and sound in menu screens
There's a PauseAudio screen action. https://www.renpy.org/doc/html/screen_a ... PauseAudio
- Mon Mar 14, 2022 11:19 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Trying to Have Multiple Inputs Under One Screen (Sudoku/Fill in the Blanks)
- Replies: 4
- Views: 311
Re: Trying to Have Multiple Inputs Under One Screen (Sudoku/Fill in the Blanks)
This isn't particularly responsive to the question asked but given that you have two threads about sudoku, I just wanted to drop in and suggest using an on-screen list of number buttons rather than either of your considered solutions. 1) Renpy's use of multiple keyboard inputs isn't all that great, ...
- Thu Jan 13, 2022 12:17 am
- Forum: Ren'Py Questions and Announcements
- Topic: "on hide" event and say screen
- Replies: 0
- Views: 229
"on hide" event and say screen
screen say(who, what): style_prefix "say" window: id "window" at say_transform # default say screen other than adding transform to window if who is not None: window: id "namebox" style "namebox" text who id "who" text what id "what" ## If there's a side image, display it above the text. Do not disp...
- Tue Dec 28, 2021 11:45 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to make a rounded side image
- Replies: 6
- Views: 364
Re: How to make a rounded side image
Not sure why you'd need to separate the images, wouldn't having a mask like so simply work? (To be clear, I mean the masking so it doesn't appear outside the white textbox part -- the part where OP wants the lower part of the white textbox to be over the image while the upper part is under the image...
- Wed Dec 15, 2021 12:41 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Having unselected choices in History?
- Replies: 14
- Views: 565
Re: Having unselected choices in History?
I mean, what I posted illustrates the basic mechanism -- up to you to adapt it for what you're doing. On the last point, if you want to have all choices in one HistoryEntry() rather than separate entries for everything, I would assume you want to .join() on the tempItems list. https://www.w3schools....
- Tue Dec 14, 2021 10:46 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Having unselected choices in History?
- Replies: 14
- Views: 565
Re: Having unselected choices in History?
screen choice(items): style_prefix "choice" vbox: for i, item in enumerate(items): textbutton item.caption action [Function(LogChoices, i, item, items), item.action] init python: def LogChoices(i, item, items): tempItems = [x.caption for x in items] tempItems[i] = ">>> " + item.caption for x in tem...
- Sun Nov 28, 2021 11:40 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Help Checking a List from a Class Instance inside a Function
- Replies: 3
- Views: 292
Re: [SOLVED] Help Checking a List from a Class Instance inside a Function
No worries, that's just programming. Debugging for hours until you realize that there was a typo.
- Sun Nov 28, 2021 11:02 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Help Checking a List from a Class Instance inside a Function
- Replies: 3
- Views: 292
Re: Help Checking a List from a Class Instance inside a Function
self.aspects = []
self.aspects = aspects
self.aspects = aspects
- Sat Nov 27, 2021 7:54 am
- Forum: Ren'Py Questions and Announcements
- Topic: CTC and Auto Mode
- Replies: 3
- Views: 382
- Sat Nov 27, 2021 7:41 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Trying to use a Method to change variables based on Attributes of a Class Instance
- Replies: 6
- Views: 406
Re: Trying to use a Method to change variables based on Attributes of a Class Instance
To provide some color: in general, you can't assign to global variables from a method (or more generally any function) unless you designate them global or refer to the store object. Either way is fine, but just so you understand why. viewtopic.php?t=29339#p347619
- Fri Nov 26, 2021 1:41 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]ordered dict???
- Replies: 3
- Views: 303
Re: ordered dict???
OrderedDict is not in python 2.7 by default but you can import the module from collections, iirc.