Search found 28 matches

by mtermik
Wed Apr 10, 2024 3:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Screen parameters not clearing properly
Replies: 2
Views: 245

Screen parameters not clearing properly

Calling a screen such as: screen test(character): And from within the screen printing out the character's name yields me: John Smith John Smith John Smith This is concerning as there is no reason for a single call to the screen to result in the underlying framework actually making multiple calls. At...
by mtermik
Sat Feb 24, 2024 1:34 am
Forum: Ren'Py Questions and Announcements
Topic: Can screen re-draw be prevented?
Replies: 2
Views: 375

Can screen re-draw be prevented?

I have a screen, let's call it screen x, and screen x is being displayed on a layer, we'll call that layer a. I am displaying a custom object, which inherits from renpy.Displayable on screen x, and this custom object allows for simulating the manipulation of the object in 3d space. This object is re...
by mtermik
Thu Dec 14, 2023 4:45 pm
Forum: Ren'Py Questions and Announcements
Topic: VPGrid not scrolling [Solved]
Replies: 0
Views: 84931

VPGrid not scrolling [Solved]

I have a vpgrid on a screen with the following initialization: vpgrid: cols 1 xpos 800 ypos 257 spacing 10 xsize 310 ysize 400 draggable True mousewheel True anchor(0.5, 0.0) vbox: xsize 270 text "Active Tasks" style "task_section_header" vbox: spacing 10 for main_quest in filter...
by mtermik
Wed Nov 15, 2023 5:53 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] $ renpy.movie_cutscene() not playing .webm video?
Replies: 5
Views: 10857

Re: $ renpy.movie_cutscene() not playing .webm video?

Have you tried running it as an image and seeing if the video works that way? image unique_identifier = Movie(size=(1920, 1080), channel="movie", play="/[file_path]/[file_name].webm", loop=False, image="/[image_path]/[image_name].png") show screen Movie("unique_ide...
by mtermik
Wed Nov 15, 2023 5:18 am
Forum: Ren'Py Questions and Announcements
Topic: Queued Notifications
Replies: 2
Views: 4615

Queued Notifications

I have done a bit of research around this and have not yet found example code, or an example implementation, which covers this issue so I an attempting to develop one myself but I have hit a bit of a snag. What I would like to do is to have a message queue object, which accepts messages for display ...
by mtermik
Sat Nov 11, 2023 4:16 am
Forum: Ren'Py Questions and Announcements
Topic: Keyword argument 'xalign' is incompatible with 'xpos'
Replies: 5
Views: 2624

Re: Keyword argument 'xalign' is incompatible with 'xpos'

It is literally what it says: *align is a *pos and *anchor bundled together and cannot be used together with either one, that would be the same as providing xpos twice. It was always that way, but recently was promoted from undefined behavior (results wary epending on how particular transform was d...
by mtermik
Sat Nov 11, 2023 3:52 am
Forum: Ren'Py Questions and Announcements
Topic: Keyword argument 'xalign' is incompatible with 'xpos'
Replies: 5
Views: 2624

Keyword argument 'xalign' is incompatible with 'xpos'

I recently started to receive a random compile error on one of my projects. None of the other projects I have reports this error, despite using the exact same code, and I cannot for the life of me tell what is causing the error. I have tried clearing persistent, but the error prevents that, as it pr...
by mtermik
Wed Oct 25, 2023 3:35 am
Forum: Ren'Py Questions and Announcements
Topic: Question about layers
Replies: 3
Views: 2391

Re: Question about layers

I suppose it's because I have used this exact same code in multiple projects and this is the first time that I have ever encountered this problem. In fact this is the 7th time I have used the exact same code base, and yet the first time this issue has occurred, so I never really thought to look deep...
by mtermik
Wed Oct 25, 2023 1:14 am
Forum: Ren'Py Questions and Announcements
Topic: Question about layers
Replies: 3
Views: 2391

Question about layers

I have some code which is supposed to display the dialogue of a character on a specific layer: $ dialogue = "I want to say something" show screen Dialogue(some_character, dialogue, _layer = 'dialogue') with dissolve $ renpy.pause() It appears to be working, as the dialogue and associated i...
by mtermik
Sat Sep 23, 2023 12:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Simulating 3D Object Rotation
Replies: 4
Views: 1065

Re: Simulating 3D Object Rotation

Your problem is a loop inside render method. render metod is called when game seeks answer to a questions "I'm painting a screen to display to player, what do you want to draw right now?". While in render the game should be threated as essentually paused. Nothing gets drawn, nothing updat...
by mtermik
Sat Sep 23, 2023 2:59 am
Forum: Ren'Py Questions and Announcements
Topic: Simulating 3D Object Rotation
Replies: 4
Views: 1065

Simulating 3D Object Rotation

I am attempting to simulate the rotation of an object in 3D space, though I am curbing my scope to focus solely on the horizontal access. I am close to a solution, but I am having a problem with the final piece. I had code which did exactly what I wanted, and rotated the image based on the location ...
by mtermik
Sat Sep 09, 2023 9:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Add dynamic image to layer without definition
Replies: 2
Views: 686

Add dynamic image to layer without definition

The answer to this question might be as simple as "No you can't do that" but I figured I'd ask it all the same, as I can't find a definitive answer anywhere. I have a label and would like to add an image, from inside that label not by calling a screen, to another layer. I know I can show a...
by mtermik
Wed May 31, 2023 6:32 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Using transitions with renpy.call_screen
Replies: 2
Views: 425

Re: Using transitions with renpy.call_screen

Anyone know the proper way to use renpy.call_screen in conjunction with a transition? If you want the transition when showing the screen: python: renpy.transition(dissolve) renpy.call_screen("screen_name") If you want the transition when hiding the screen: $ renpy.call_screen("screen...
by mtermik
Tue May 30, 2023 9:42 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Using transitions with renpy.call_screen
Replies: 2
Views: 425

[Solved] Using transitions with renpy.call_screen

I have tried searching through the forums for an answer to this, but no luck so far, so forgive me if this is a duplicate question. I am using renpy.call_screen to... well, call a screen obviously :D. I have a reason for using renpy.call_screen("screen_name", parameters, _layer="displ...
by mtermik
Mon May 29, 2023 12:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Capture pressed key
Replies: 2
Views: 367

Re: Capture pressed key

According to https://web.archive.org/web/20230211181423/https://www.pygame.org/docs/ref/key.html ev.unicode might work there. PS. There is also pygame.TEXTINPUT ev.unicode returns the key name in the correct format, though it returns blank for keys such as shift and control. pygame.key.name(ev.key)...