travsam
08-21-2005, 11:40 PM
Hello, I am Travsam and I am new in the Forums.
I am trying to develop a code for a game, I want to use two players in the game so I have to alternate them in the program using an array
var cP = new array["1","2"]
then i want to call the variable inside other variables so I can use it to differenciate two variables just by the number assigned in the array.
V.G.
var money1
var money2
is posible to call those variables using a code like this:
var money["cP"]
so i can alternate the two variables during the use of the page?
Greetings
I am trying to develop a code for a game, I want to use two players in the game so I have to alternate them in the program using an array
var cP = new array["1","2"]
then i want to call the variable inside other variables so I can use it to differenciate two variables just by the number assigned in the array.
V.G.
var money1
var money2
is posible to call those variables using a code like this:
var money["cP"]
so i can alternate the two variables during the use of the page?
Greetings