Download

How to limit distance a character can travel per turn

I am building a turn-based game that involves having the option to move around the map, I only want to allow each character to move so far per turn. How would i allow the character to go only so far then force him to stop?

Do you have a grid system?

you could do it per grid if you wanted something more old school like the top down sprite based games on the old consoles… newer games that used turn based like divinity original sin dont do that though, do they?.. couldnt you draw a trace between the starting position of your character and the ending position and check if its within a certain permissable distance?.. or couldnt you spawn in an invisible wall centered around the starting location of the character that will block movement beyond the permissible distance?.. im sure there are many ways to do it