How do I Restrict movement per turn.

  • I'm working on a turn-based game as a project and I want to allow movement, but to restrict how much movement a character makes per turn. I plan to use a sprite to highlight the area the player is allowed to move during their turn, but I'm not sure how to make sure the character avatar doesn't move past the highlighted area during their turn.

  • Without showing how your movement system is set up, it will be difficult to get a specific answer.

    The min() expression may be of use. min(maxdistance, selecteddistance) would return the smaller of the two values - either the maximum distance they are allowed to move, or the selected distance that the player would want to move.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sorry for not having a picture up sooner.

    Testing this out in the top down shooter template for now until I'm sure I've got it. So anyways. I've tested it to know that I've got the switching turns thing done correctly, now how do I restrict the player's movement distance?

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