Beginner Question

amor 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 1

The aim is to, when pressing control and a letter key, a set of slider values are saved, identified as that key. So, when the key is pressed without the control key, the set of values would be applied to the sliders. 

So far, I have made a state machine, that switches between two flow states during control up & down. I imagine it's a very simple solution but I'm having trouble figuring it out, how to combine a value to an identifier.

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

Thank you Lazlo, this has definitely helped guide me. The only minor correction I have found is changing the get key down, for the control, to get key. Thank you, again, for the hard work you put into Ludiq.

Satisfaction mark by amor 3 years ago

Hi Amor!

This is probably simpler than you think, you only need a flow graph. 

Here's an example for a single slider, but you could add more: