Forum rules - please read before posting.

Manipulating turn speed in script?

Hi, I wondered if it was possible to be able to manipulative the turn speed number in scripting? I wanted the player to be able to set their own value for turn speed in the settings.

Thank you!

Comments

  • Sure - it's all public, see the API reference for it here.

    To access the active Player, and their turn speed:

    AC.KickStarter.player.turnSpeed = 10f;
    

    If you want users to set this as an option, it's best to store this in a Global float Variable linked to Options data. Then when the game begins, apply it to the turnSpeed property as above.

    For a tutorial on creating custom options data, see here.

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.