How do I Restrict movement per turn.

Get help using Construct 2

Post » Thu Jan 12, 2017 9:47 pm

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.
B
6
Posts: 4
Reputation: 258

Post » Fri Jan 13, 2017 1:36 am

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.
Mistakes were made.
B
53
S
27
G
114
Posts: 1,695
Reputation: 64,438

Post » Fri Jan 13, 2017 9:50 pm

Sorry for not having a picture up sooner.

Image

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?
B
6
Posts: 4
Reputation: 258


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests