Download

How to make character max move distance

I want to make a small game, where the player can move freely at their turn, but only move to a maximum distance before their turn is over? Sort of like a Turn based strategy game, but without the tiles.
I’ve looked online about movement and events, but cannot find anything about it?
Able to move anyway they want just within the restriction of the distance? And it’s for mobile.

…bump…

Like this:

It measures your distance from your last location every tick. When it exceeds a certain amount ( 500 in this case, not much ), it will stop movement. The start movement custom event needs to be called to restart the movement. It will need to be called to get things rolling…

EDIT: You don’t need that TravelOK bool in there… :wink:

Aaa that’s perfect thanks so much, I’ll have a better understanding now.