Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Apologies for another odd question, but this one has really stumped me.

I have an imagebutton, or rather a series of them, within a horizontal controller_viewport. I wanted to make them show/hide using a transition (an ATL one, but after further testing, this applies to preset transitions as well), but the transition doesn't seem to play. On being clicked, the button either immediately appears or immediately disappears, as if the animation is being skipped.

I also tested the imagebuttons outside of the viewport as seperate screens, and the animation plays just fine then, which leads me to believe this issue is symptomatic of the button being within the aforementioned viewport. This may be a general issue with viewports, and not exclusive to controller_viewports specifically, but I thought it was worth mentioning in case you, or anyone else, may be aware of a workaround.

Thanks!

Have you tried this with a general viewport? Ren'Py doesn't pass ATL events to displayables inside containers, so that may be what you're seeing. Otherwise, if it works with a regular viewport and not the controller viewport, if you can make me a short reproducible code section I'll look into debugging it.

(1 edit)

after just testing with a non-controller viewport, the atl transitions actually DID work to my surprise! so this might actually be an issue with controller support expansion! I've made a Google Drive folder with both the classic viewport and controller viewport versions of my full chapterselect script. figured that a more in-depth look might help better for debugging than a short extract. there's also a folder containing all of the necessary image assets, so that should help as well.

SMALL UPDATE ON THIS! 

I've found that this bug ALSO applies to tooltips. For example, if you have a button in a controller viewport, and that button uses both an ATL transform and a tooltip, the tooltip will override the ATL for some reason, and cause it to (again, the same with the previous problem) immediately complete the animation. It seems to skip over the ease/linear arguments specifically. 

I also made sure to test this without the tooltip, in which it worked fine, and with the tooltip in a regular viewport, and that, too, works fine. Not sure if this will be helpful to your debugging process or not, but I thought it to be worth mentioning.