I have a pokemon game with some kool features coded in but the next thing I wanna add are attacks but whenever I make it so when u pick you wanna be a water type I made a var called mob/var/type = ""
And when you select water I put src.type = "Water" but when I finished creating my character the var was src.type = "" how do I make it so it keeps the var I really wanna add attacks like water gun,hydro pump,etc.
ID:271400
Jun 16 2007, 10:06 am
|
|
Jun 16 2007, 10:15 am
|
|
Call it something besides "type". "type" is already a built-in variable, used for something else.
|
In response to Jon88
|
|
I renamed it ability and it didnt work either,it restarted the var when I finished creating my character.
|
In response to Element Hero creator
|
|
Then you're changing it somewhere between where it's modified and where you are actually put in the game.
|