Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Short version: I used `controller_bar` but values are not changing.

Longer version: I can't come up with a minimum replicable case, so I'm a bit bamboozled about where the problem is arising, and I don't want to copy/paste my whole project code. My preferences screen started out similar to the default renpy project, but I changed the viewport-based scroll to a `controller_viewport` and the preferences bars to `controller_bar`s. I set up a `FocusDisplayable` object, so I know that the bar is currently focused, and even though pressing left/right doesn't change the focused object, it also doesn't change the value on the bar.

Unfortunately there isn't really any information for me to troubleshoot with either; I suppose for you I'd suggest just adding or removing things one at a time. Perhaps try removing the FocusDisplayable, making the controller_viewport just a regular viewport, removing other things from your viewport and screen, changing the bar to a regular bar, etc. 

Alright, I figured it was worth asking at first in case there was some known incompatibility. I did some additional testing and found the source of the issue: the viewport attribute `arrowkeys: "not sticks"` breaks both `bar` and `controller_bar` elements inside of it.

Thanks for the investigation! I've added it to my issues tracker and I'll take a look when I can.