Search found 51 matches

by morganw
Sun Aug 21, 2016 9:11 am
Forum: Ren'Py Questions and Announcements
Topic: Can a python function create and return an ATL transform?
Replies: 3
Views: 1925

Re: Can a python function create and return an ATL transform

https://www.renpy.org/doc/html/atl.html The Python equivalent of an ATL transform is the Transform() displayable. There is no way to create an ATL transform programmatically. You can use a curried function as a Transform function, and pass values into that: https://www.renpy.org/doc/html/trans_tran...
by morganw
Wed Aug 03, 2016 6:17 pm
Forum: Ren'Py Questions and Announcements
Topic: How to invoke_in_new_context from a UDD
Replies: 2
Views: 560

Re: How to invoke_in_new_context from a UDD

I was trying to call it from the render method and using the event method instead does make it work with ui.add(). I did have a couple of problems afterwards; I realised that I wasn't getting the new context until there was an event to process, so when I need to change context I'm queuing an event m...
by morganw
Tue Aug 02, 2016 5:57 pm
Forum: Ren'Py Questions and Announcements
Topic: How to invoke_in_new_context from a UDD
Replies: 2
Views: 560

How to invoke_in_new_context from a UDD

I've got a bit stuck trying to invoke a new context from a UDD, specifically I wanted to use these two commands rather than re-create an approximation within the UDD: renpy.invoke_in_new_context(renpy.with_statement, Fade(0.1, 0.0, 0.5, color="#fff"), always=True) renpy.invoke_in_new_context(renpy.p...
by morganw
Wed Jul 27, 2016 3:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Can I ensure that audio is cached before I need to play it?
Replies: 9
Views: 847

Re: Can I ensure that audio is cached before I need to play

I think I may have wrongly described the problem as frame skip, after slowing down the animation I can now see it's actually a longer delay between frames when audio is played for the first time. From testing, I'm pretty sure it's the OS block cache that makes everything smooth second time around, s...
by morganw
Tue Jul 26, 2016 7:57 pm
Forum: Ren'Py Questions and Announcements
Topic: Can I ensure that audio is cached before I need to play it?
Replies: 9
Views: 847

Re: Can I ensure that audio is cached before I need to play

I'm using a pretty old laptop so maybe the skipped frames are just that it can't cope with loading the audio file as well as keeping up the animation. I think the actual sound playback is slightly delayed too.

There is no way to load the audio beforehand then?
by morganw
Tue Jul 26, 2016 2:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Can I ensure that audio is cached before I need to play it?
Replies: 9
Views: 847

Can I ensure that audio is cached before I need to play it?

I'm getting quite a lot of dropped frames during animation, when I play a sound for the first time. i.e. the first time that I call this: renpy.sound.play("audio/sound.ogg", channel=0) Subsequent plays of the sound are normally okay, but I'm unsure if this is because the sample has been cached by Re...
by morganw
Sat Jul 23, 2016 2:52 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I check for transparent pixels in a UDD?
Replies: 4
Views: 358

Re: How do I check for transparent pixels in a UDD?

Thanks, this seems to work without any issues.

I thought I'd be clever and try to store the previous Render for the opacity check, but then learned that because it won't pickle it breaks the save system. Creating a new Render for the check is working fine though.
by morganw
Fri Jul 22, 2016 6:45 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I check for transparent pixels in a UDD?
Replies: 4
Views: 358

Re: How do I check for transparent pixels in a UDD?

I've simplified the description a little - it's a port of a minigame from a different engine. The objects in the room are managed and reused by the room (semi-randomised movement, custom scaling based on the room position, plus changing between two sets of animation frames which are being tinted as ...
by morganw
Fri Jul 22, 2016 5:59 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I check for transparent pixels in a UDD?
Replies: 4
Views: 358

How do I check for transparent pixels in a UDD?

I've got a UDD (fullscreen - looks like a room) with a child UDD being rendered inside it (an object in the room). In order to handle a click event on the child is there some way to leverage some other Ren'Py functions to get pixel perfect click detection? Quite a lot of the sprite is transparent an...
by morganw
Mon Jun 27, 2016 3:50 pm
Forum: Ren'Py Questions and Announcements
Topic: Transform interfering with animation speed?
Replies: 2
Views: 623

Re: Transform interfering with animation speed?

I've tried defining an image in the same way, as well as using your transform (with easeout and linear 5.0), and for me the animation speed on the image stays consistent for the entire duration of the move. Is there anything else that could be taking effect on it?
by morganw
Sat May 21, 2016 3:45 pm
Forum: Ren'Py Questions and Announcements
Topic: High-DPI disable / force resolution
Replies: 16
Views: 2924

Re: High-DPI disable / force resolution

I think at the moment the default behaviour is to always use the native resolution of the screen, in order to preserve image quality and ensure that everyone can play the game. "config.use_drawable_resolution" lets you use the game's resolution for most of the transforms, but the final result will b...
by morganw
Sat Apr 30, 2016 6:11 pm
Forum: Ren'Py Questions and Announcements
Topic: High-DPI disable / force resolution
Replies: 16
Views: 2924

Re: High-DPI disable / force resolution

I did some testing today (just scrolling a single image) on three different computers and an iPad, and I see the same jitter in any type of linear scrolling. It's present at higher resolutions too (I also see it in the ATL demos and the Pong mini-game, in the tutorial game) but becomes more apparent...
by morganw
Fri Apr 29, 2016 6:11 pm
Forum: Ren'Py Questions and Announcements
Topic: High-DPI disable / force resolution
Replies: 16
Views: 2924

Re: High-DPI disable / force resolution

I would have thought you could change the cursor size based on the same multiplier that is used for scaling the screen. Not actually scaling the cursor, but just setting a different cursor based on the multiplier in the config.adjust_view_size function, e.g. multiplier is 2, so set the cursor to be ...
by morganw
Thu Apr 28, 2016 3:41 pm
Forum: Ren'Py Questions and Announcements
Topic: High-DPI disable / force resolution
Replies: 16
Views: 2924

Re: High-DPI disable / force resolution

I just realised, it's your project I referenced when I was having trouble with a low resolution game . Have you also tried... config.use_drawable_resolution = False I'm using a TTF font and haven't seen an issues at 1920 x 1200, but I guess that might not be a high enough resolution to trigger any s...