Not quite sure what the name of it was.. Its an RPG library though you might find it if you look through the maps hosted on here that are under the Library defininition.
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
•PlayerSpawns[0-15][0-15] this is a multi-dimensional array. the first 0-15 is to represent the player the second set is for the player's spawn points 0-15
PlayerSpawns[1][0] = point 1
PlayerSpawns[1][1] = point 2
PlayerSpawns[1][2] = point 3
PlayerSpawns[1][3] = point 4
PlayerSpawns[1][4] = point 5
by index I mean the index of the point, out of the 15 for a specific player
Index = position in array
I feel like im teaching CompSci here..... wish I had finished that degree....
so you want every player to have 15 different points they can set
you would start with this
Global Variables
PlayerSpawns[0-15][0-15] this is a multi-dimensional array. the first 0-15 is to represent the player the second set is for the player's spawn points 0-15
As players create thier points you would set these to be
PlayerSpawns[triggering player][index of spawn point to create] = Point where you want the spawn
you will have to work out your own logic for tracking how many points the player currently has
you could actively check all the points they have set before adding another point or you could use another integer array to track how many points each player currently has. ( I would suggest another array since the logic is simpler that way.
Also remember that when you remove one of these spawn points you need to set
PlayerSpawns[triggering player][index of spawn point to create] = No Point or Null
@thommiej: Go
Not quite sure what the name of it was.. Its an RPG library though you might find it if you look through the maps hosted on here that are under the Library defininition.
@thommiej: Go
theres already a library out that does this all for you......
im at work right now cant really look at it
@thommiej: Go
its not a function
•PlayerSpawns[0-15][0-15] this is a multi-dimensional array. the first 0-15 is to represent the player the second set is for the player's spawn points 0-15
by index I mean the index of the point, out of the 15 for a specific player
Index = position in array
I feel like im teaching CompSci here..... wish I had finished that degree....
@thommiej: Go
so you want every player to have 15 different points they can set
you would start with this
Global Variables
As players create thier points you would set these to be
you will have to work out your own logic for tracking how many points the player currently has
you could actively check all the points they have set before adding another point or you could use another integer array to track how many points each player currently has. ( I would suggest another array since the logic is simpler that way.
Also remember that when you remove one of these spawn points you need to set
@thommiej: Go
ummm loop through your array. ( go study array logic if you dont understand this before using arrays)
http://en.wikipedia.org/wiki/Array_programming