[QUOTE=Regimos;287880]It's great, but can you provide instructions or something on how to make different map planes? And can you add a function, so you can program maps that you can only enter from one side (say you can enter from the right side, if you go to the top, bottom or left side you can't go to the map to the left of it)?[/QUOTE]
[QUOTE=Regimos;292122]Cool. I have another request, though. Could you make some maps loopable? I don't mean one map, but a whole array of them.. here's a diagram to make it clear.
Maps = X and O
Arrows = Loop here
So if you go left of map O, you would appear at the very right side of the array! This would be a great function to have in my game.[/QUOTE]
Regimos, I'll be sure to implement both features when I have the time.
As for an explanation of multiple map planes, they're indexed by the z-axis of the tables.
First, increase the third value in the size table to equal the number of planes...
where n is the number of planes.
Next add the additional plane to the @maps and @sizes tables...
where p is the z index of the regional plane.
That should do it. Thanks again for your continuing support.
[QUOTE=Regimos;292122]Cool. I have another request, though. Could you make some maps loopable? I don't mean one map, but a whole array of them.. here's a diagram to make it clear.
Maps = X and O
Arrows = Loop here
So if you go left of map O, you would appear at the very right side of the array! This would be a great function to have in my game.[/QUOTE]
Regimos, I'll be sure to implement both features when I have the time.
As for an explanation of multiple map planes, they're indexed by the z-axis of the tables.
First, increase the third value in the size table to equal the number of planes...
where n is the number of planes.
Next add the additional plane to the @maps and @sizes tables...
...
@maps[0,0,p], @maps[1,0,p], @maps[2,0,p], @maps[3,0,p] = 1, 2, 3, 4
@maps[0,1,p], @maps[1,1,p], @maps[2,1,p], @maps[3,1,p] = 5, 6, 6, 7
@maps[0,2,p], @maps[1,2,p], @maps[2,2,p], @maps[3,2,p] = 8, 6, 6, 9
@maps[0,3,p], @maps[1,3,p], @maps[2,3,p], @maps[3,3,p] = 10, 10, 10, 10
...
@sizes[0,0,p], @sizes[1,0,p], @sizes[2,0,p], @sizes[3,0,p] = sm, sm, sm, sm
@sizes[0,1,p], @sizes[1,1,p], @sizes[3,1,p] = sm, large, sm
@sizes[0,2,p], @sizes[3,2,p] = sm, sm
@sizes[0,3,p] = long
@maps[0,0,p], @maps[1,0,p], @maps[2,0,p], @maps[3,0,p] = 1, 2, 3, 4
@maps[0,1,p], @maps[1,1,p], @maps[2,1,p], @maps[3,1,p] = 5, 6, 6, 7
@maps[0,2,p], @maps[1,2,p], @maps[2,2,p], @maps[3,2,p] = 8, 6, 6, 9
@maps[0,3,p], @maps[1,3,p], @maps[2,3,p], @maps[3,3,p] = 10, 10, 10, 10
...
@sizes[0,0,p], @sizes[1,0,p], @sizes[2,0,p], @sizes[3,0,p] = sm, sm, sm, sm
@sizes[0,1,p], @sizes[1,1,p], @sizes[3,1,p] = sm, large, sm
@sizes[0,2,p], @sizes[3,2,p] = sm, sm
@sizes[0,3,p] = long
Expand to see the code.
where p is the z index of the regional plane.
That should do it. Thanks again for your continuing support.