Search found 1883 matches
- Fri Aug 12, 2022 6:03 am
- Forum: Ren'Py Questions and Announcements
- Topic: Renpy 8 TypeError: sort()
- Replies: 4
- Views: 265
Re: Renpy 8 TypeError: sort()
Empty list is often sign of CPython internal error when operation on list. But in this case an exception should be thrown. One reason for error might be non-symmetrical or non-transitive sorting function. if not s1.is_floor() and s2.is_floor(): return 0 elif s1.is_floor() and not s2.is_floor(): retu...
- Fri Aug 12, 2022 5:37 am
- Forum: Ren'Py Questions and Announcements
- Topic: Splashscreen using click to progress
- Replies: 6
- Views: 303
Re: Splashscreen using click to progress
Don't use the splashscreen for this, instead use before_main_menu THere is distinct difference: before_main_menu executes in menu context. splashscreen is not. Splashcreen is not shown after restarting engine (by exiting into main menu, before_main_menu is). Not that it would make a difference for ...
- Fri Aug 12, 2022 5:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: Renpy 8 TypeError: sort()
- Replies: 4
- Views: 265
Re: Renpy 8 TypeError: sort()
https://docs.python.org/3/library/stdtypes.html#list.sort sort(*, key=None, reverse=False) [...] sort() accepts two arguments that can only be passed by keyword (keyword-only arguments): [...] The functools.cmp_to_key() utility is available to convert a 2.x style cmp function to a key function .
- Fri Aug 12, 2022 4:11 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] How to Implement Vector2-like Physics Without Access to Vector2
- Replies: 1
- Views: 231
Re: How to Implement Vector2-like Physics Without Access to Vector2
You can easily reimplement it yourself. It is school-grade math, nothing too complex.
- Wed Aug 10, 2022 5:31 pm
- Forum: Ren'Py Questions and Announcements
- Topic: When I left click after dialog has run out it send me to the main menu
- Replies: 6
- Views: 285
Re: When I left click after dialog has run out it send me to the main menu
Then make screen modal and add a hard pause after showing it.
- Wed Aug 10, 2022 10:56 am
- Forum: Ren'Py Questions and Announcements
- Topic: Ren'Py games and required Redists for Good Old Games
- Replies: 2
- Views: 240
Re: Ren'Py games and required Redists for Good Old Games
This is what your game needs installed on target machine to work. RenPy bundles everything, including python installation in distributed games, so only thing you might want to select is DirectX 9 for Windows distributions.
- Wed Aug 10, 2022 3:38 am
- Forum: Ren'Py Questions and Announcements
- Topic: [RE]Activate_sound is not worked in confirm window of load menu.
- Replies: 2
- Views: 235
Re: [RE]Activate_sound is not worked in confirm window of load menu.
The sound in all confirm windows except "Load" is working normally. That is pretty strange. Sound working, I mean. It should not work anywhere. I suggest to try to force recompile the game to try to get rid of it. In reality, activation sound does play, but is immideately canceled by Play action. R...
- Tue Aug 09, 2022 4:29 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] How to change the background of the selected textbutton ?
- Replies: 9
- Views: 328
Re: How to change the background of the selected textbutton ?
but I don't understand how to do it for "selected". selected_background '#999' I tried this option. This does not work for btn in Shop.categories: textbutton btn: style 'bbbb' action NullAction() style bbbb: background '#111' hover_background '#333' selected_background '#637999' for btn in Shop.cat...
- Tue Aug 09, 2022 2:43 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] How to change the background of the selected textbutton ?
- Replies: 9
- Views: 328
- Sun Aug 07, 2022 3:25 am
- Forum: Ren'Py Questions and Announcements
- Topic: Named Character results in key error
- Replies: 11
- Views: 243
Re: Named Character results in key error
If this is the only place where main_character_name is defined, then the error is expected: replays do not execute thelabel start, so the main_character_name variable is never set. Accessing nonexisting variable is an error.
- Sun Aug 07, 2022 2:59 am
- Forum: Ren'Py Questions and Announcements
- Topic: Named Character results in key error
- Replies: 11
- Views: 243
Re: Named Character results in key error
Do you use define or default fo main_character_name? Isthere anything setting main_character_name to some predefined value when you enter replay?
- Thu Aug 04, 2022 5:22 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Ren'Py Snake Game Runs Too Fast (How to Achieve PyGame-Like Clock Ticking)
- Replies: 2
- Views: 331
Re: Ren'Py Snake Game Runs Too Fast (How to Achieve PyGame-Like Clock Ticking)
You already have basics of code nessesary to properly time your game: dtime variable. What you need is to accumulate elapsed time until it is larger than desired frame time. Only then actually do the processing. Pseudocode: accumulated_time += dtime if accumulated_time >= frame_duration: accumulated...
- Thu Aug 04, 2022 10:35 am
- Forum: Ren'Py Questions and Announcements
- Topic: Non-breaking slash?
- Replies: 6
- Views: 492
Re: Non-breaking slash?
All right then. This works as long as there's no nested markup within the {nb}…{/nb} tags, which is good enough for my current purposes. Be aware, that this wrecks autovoicing, and, as a consequence, reduces accessebility. It is fine if you are just using on abbreviations, just don't use it on actu...
- Thu Aug 04, 2022 6:42 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Is the use of "Textbutton" to output a simple text to "Text"?
- Replies: 4
- Views: 259
Re: Is the use of "Textbutton" to output a simple text to "Text"?
Do you do this in your projects? Can this lead to errors? Is there anything why it is so undesirable to do? Be careful with styles: textbutton can pick insensitive/hovered styles and use them instead of generic style for idle button (Depending on how you make a button do "no action", it either will...
- Thu Aug 04, 2022 5:37 am
- Forum: Ren'Py Questions and Announcements
- Topic: how to keep screen on top of transitions
- Replies: 5
- Views: 206
Re: how to keep screen on top of transitions
called screens are transient and are automatically hidden at the end of interaction. To make screen persist, you need to show, not call them. Alternatively, you can add screen to the list of overlay screens, which are shown automativally and toggle its visibility with a variable. Wow... until now I...