Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

It should be possible. If you set up your layers so that only the neutral position (the finger resting over the buttons) is visible before any states are active, then it should revert to that point when those states deactivate again.

To help you understand the expected behaviour:
Internally, the default visibility of every layer is saved and updated whenever there are no states active. The States are added to a stack when they're activated, so it starts from the defaults, then adds each State effect one by one in order of activation. When the State is deactivated, it's removed from the stack, so it should stay at default when no states are active.

If that's not happening for you, let me know because that would be a bug.

(1 edit)

I think I understand that, and I believe things are working properly as you describe. But I guess my problem is that I have 2 neutral layers, and I want one to be visible after I press buttons, and the other one to be active after I move the stick.


For example, If do like you suggest and have my only neutral thumb position when no states are active be where it's resting over the buttons. The movement with the buttons looks better, but if I do something like move up to down on the joystick (and over the dead zone where no states are active), the thumb movement is much less natural b/c the ThumbAnalogNeutral isn't made visible


So is there a way I could make the ThumbAnalogNeutral layer visible and the ThumbBtns layer invisible after I use the stick, and then reverse when I press buttons?

(3 edits)

You could have two "permanent" states: one activated by the thumbstick, to show rightThumbAnalogNeutral. (you'd currently have to have that duplicated for each axis direction but I will hopefully add an "any axis" trigger soon). The second permanent one would be activated by the buttons to show rightThumbBtns.
The thing with "permanent" states is that they alter the default visibility, so they would go behind any "while held" states and appear once they deactivate.

Either that, or you could have all the current states being "permanent" instead of "while held", which would mean the thumb just stays in the last position it was at, but you wouldn't have either idle pose then.


It's definitely not ideal setup, but that's currently how it could be possible. I like your idea of the "after" trigger, I'll see if I can add something like that soon!

I went out for walk and I think I came upon a solution similar to what your taking about! So the Folders! They also show up in the list of layers that you can show/hide/no change for the states. I made folder called rightThumbNeutral, I put both the neutral poses in there. Now instead of hiding specific neutral thumbs for all those when-held states, I just hide the folder. Then as you suggested, I made permanent states for the buttons/stick, those will then show/hide the specific neutral thumb. Viola! Now I can hide the neutral thumb while also changing neutral thumb

Idk if the folders are actually necessary, but it helps for me to figure it out anyway. Thanks for helping me think through this!

right now, I'm using face buttons/dpad to switch from resting on stick to resting on buttons, and the just u on the sticks for the reverse, which suits most of my purposes. An "Any Axis" trigger would be appreciated though

Wow, nice work! That's an incredible account of detail you got in there. 

I'll try and add some ways to make that easier in future!