Hi DUTOIT,
Thank you for your example. It's other approach that work fine but need that the zones was like a chess board to move to, in my case my boardmap it's about irregular shapes. With your examples and explanations I continue working, and I guees I solved my problem.
[attachment=1:7w1od07p][/attachment:7w1od07p]
I created to functions that when the user touch one zones, check the array and highlight the desired zones from the array. I'm only I need to created the map, extract each zone with their frames and create the array where I put where the player can move. The same solution can be applied to the units or whatever.
Attach an screen capture with the solution.
[attachment=0:7w1od07p][/attachment:7w1od07p]
This one example of mapboard but can be extensible to any other model.
The use of an array to control destinations, attributes, values is more easy and automatically. Now I will continue with the tokens movement.
News questions are:
How avoid the "undefined value" error when try to read one array position?
How find into an array for a value and replace it? I found "TheindexOf" and "TheValueOf"
I guess that if the search value work fine is better than the use of repeat.
Thoughts?
Salut,
Josep M