1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved How to "toggle run"?

Discussion in 'Developer Support' started by ChosenBotter, Jun 6, 2016.

Tags:
  1. ChosenBotter

    Joined:
    Jun 5, 2016
    Messages:
    12
    Likes Received:
    3
    Probably a stupid question, but I've been looking through the API and can't figure out a way to do it.

    Is there a way to "toggle run" to have the player run? Also, is there a way to read the current "run energy" value? Thanks!

    Edit: Solution found. If the
    Code (Text):
    1. MANAGE_RUN
    option is passed to
    Code (Text):
    1. step(TraversalOptions...)
    then
    Code (Text):
    1. step()
    will automatically have the player run. Also, this is enabled by default - so you don't have to worry about running at all! Furthermore, this makes the question about reading "run energy" obsolete, since the API handles running entirely. Thank you for answering this question, @Savior !
     
    #1 ChosenBotter, Jun 6, 2016
    Last edited: Jun 10, 2016
  2. Best Answer:
    Post #2 by Cloud, Jun 11, 2016
  3. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    The traversal class also allows you to control this.
     

Share This Page

Loading...