Turn based game // multiple movement instances

Hi gang

i am trying out to expand my flash skills by (i hope) building a rather simple game
well i guess; if anyone knows “memoire 44” it’s a classic boardgame, it’s based on this.
it’s actually a very ez game to play, but translating it to code is offcourse something different.

i’ve made a hex grid with each an unique id,
now for the basic movement that’s pretty simple

but here we go :slight_smile:

i want multiple instances for the movement

lemme explain
it’s kinda a war game so hence my naming
i’ve colored the questions in [COLOR=DarkOrange]orange[/COLOR]

ive managed to find a way to first select the unit and then choose a new position

now
[COLOR=DarkOrange]a ground unit, can move up to 2 hexes MAX but can’t fight that turn
or it can move 1 hex and still fight that turn.
(when a unit gets into water, it has to wait thus can’t fight this turn, when the requested distance was 2 hexes from the point of origin, it stops when hitting the water) (not done yet)
[/COLOR][COLOR=Red][COLOR=Black][COLOR=Red][COLOR=DarkOrange]if you test the swf you’ll see you can move up to 2 hexes, but somethimes you can move further. how do i code this solid? additional info: it seems it works fine only in the positive direction thus from left to right.

i know i have to check the distance between the point of origin minus the selected distance but i get lost in the code for now. (hence it’s my first game tryout ever)
hoping i don’t put the stakes too high.[/COLOR]

[/COLOR][/COLOR][/COLOR][COLOR=Red][COLOR=Black]once i get this fixed i can make other units on this standard but first things first.
but i am stuck

i’ve searched whole weeked and came back with nill!

hopefully someone can assist me
if the game ever gets done i’ll put credit where credit is due.

PS. if you test; you only can move to the lowest row for now (again first things first)

kind regards & thanks in advance.
you’ll need the laco tween engine in order to see the tweens

the files:
http://www.nitras.be/memoire_spinoff/memoire_test.html
[/COLOR][/COLOR][COLOR=Red][COLOR=Black]http://www.nitras.be/memoire_spinoff/memoire_test.fla[/COLOR][/COLOR]
[COLOR=Red]
[/COLOR]