M
maerlyn
Guest
I have a grid made with tiles in a Dalaran map. It looks like a diamond:
Just bigger. Anyway, I'm wondering: what's the best way to move a unit around from point to point? Each possible location that a unit could be is at a blank space. ex: /\
Right now I have Regions named at each point in this manner:
But to manipulate them, I would need to access the X and Y offsets as integers. And they're strings. Could I do that in JASS? Could I take 00 and apply DOWN to it so that the unit on 00 would move to 01? Would assigning each region to a variable work? An array of arrays would work, but I don't know if I could do that: ex. Position[1[2]] for region 12.
Any ideas would be appreciated.
Code:
/\
/\/\
/\/\/\
\/\/\/
\/\/
\/
Just bigger. Anyway, I'm wondering: what's the best way to move a unit around from point to point? Each possible location that a unit could be is at a blank space. ex: /\
Right now I have Regions named at each point in this manner:
Code:
00
/ \
01 10
/ \ / \
02 11 20
\ / \ /
12 21
\ /
22
But to manipulate them, I would need to access the X and Y offsets as integers. And they're strings. Could I do that in JASS? Could I take 00 and apply DOWN to it so that the unit on 00 would move to 01? Would assigning each region to a variable work? An array of arrays would work, but I don't know if I could do that: ex. Position[1[2]] for region 12.
Any ideas would be appreciated.


