Forum rules - please read before posting.

Use menu slider to adjust text scroll speed

Hello,

I am having trouble understanding how to add additional entries to the default option menu and also save it in a profile like all of the other values in the options menu. I would like to have a slider that adjusts the "text scroll speed" value similar to how the volume sliders work. I see how to set it in the code using AC.KickStarter.speechManager.textScrollSpeed but it doesn't seem like the rest of the menu options use that sort of value changing to set the values in the game. Is there any reference material or guidance regarding getting something like that set up?

Thanks!

Comments

  • That's the right API reference - changing that through script should be the equivalent of adjusting the field directly in the Manager.

    To have it be a part of your Options menu, you'll need to link it - through script - to a Global Float variable.

    This is because such variables have a Link to property, which - when set to Options Data - will cause its value to be stored alongside the rest of the options/profile data, as opposed to within individual save files.

    A tutorial on this topic can be found here - this one's for screen-resolution, so it's a little more complex than text-scroll speed but the principle is the same.

    Looking over it now, I do think the tutorial could be shortened to be more clear/simple. I'll see about revising it soon - but if you have any issues attempting this in the meantime, just write here and I'll try to help.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.