I am making a board-game style map, with each "space" on the board marked with a point.
I am hoping for a way to initialize my 200+ points into an array, rather than 200 rows of:
Variable - Set ptArray[index] = Point 001
Is there an internal list of all points on a map, that I could then reference?
Or a way to do this with a Custom Script?
Or even just a different way entirely to handle this?
if its a board game, I take it all the points should be the same... exmaple
(0,0) (0, 100) (0, 200) .....ect
(100,0) (100, 100) (100,300) ...ect for second row
if this is the case, add them dynamicly
have a nested for loop.
point array[x] = Point from X, Y X= X*100 y = y*100
and as the loop goes through, it will just dynamicly add all the points, this actully makes it easier on you, as you dont have to place every point on the board, and this way, you know they are ll even.
Rollback Post to RevisionRollBack
Random Information
Tutorials - Map Development - Galaxy wiki
|Issues? PM me|
Thanks a ton for that suggestion, Molsterr. That worked great, though I have to map out the board in a different (but probably better) way now.
For each straight line of spaces, I simply use another for loop, modifying the X and Y values from before.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am making a board-game style map, with each "space" on the board marked with a point. I am hoping for a way to initialize my 200+ points into an array, rather than 200 rows of: Variable - Set ptArray[index] = Point 001
Is there an internal list of all points on a map, that I could then reference? Or a way to do this with a Custom Script? Or even just a different way entirely to handle this?
if its a board game, I take it all the points should be the same... exmaple
(0,0) (0, 100) (0, 200) .....ect
(100,0) (100, 100) (100,300) ...ect for second row
if this is the case, add them dynamicly
have a nested for loop.
point array[x] = Point from X, Y X= X*100 y = y*100
and as the loop goes through, it will just dynamicly add all the points, this actully makes it easier on you, as you dont have to place every point on the board, and this way, you know they are ll even.
@Molsterr: Go
Thanks a ton for that suggestion, Molsterr. That worked great, though I have to map out the board in a different (but probably better) way now. For each straight line of spaces, I simply use another for loop, modifying the X and Y values from before.