How do I have multiple movement types in one game?

  • I want to change the way my character moves within a "game" I'm making. I can set it up to have the player's direction to follow the mouse. I can also make it so the player follows a different object. I want to be able to switch through these two (and possibly more), movement schemes in the same game with a button press. Thing is, I need to have them both run at tick speed. I can't figure out how to do this.

    I basically need a variable that triggers different controls by using the space key.

    Would I do that with a function, and if so how?

    I messed with the #'s just to see if it'd help. This starts by following the mouse, then on a planet object after pressing space and then it gets stuck on that.

    Thanks,

    GnarlFox

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I know I'm using the space bar twice and it might get in an infinite loop or something, but I don't know what to do to fix it.

  • Nevermind, I figured it out.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)