I have a question in regards to variables, declaring and “associating”.
If I create a new object variable such as:
var player:Player = new Player();
Then I were to place said variable within an array of the party members of my team such as:
var game_party:Array = new Array(player,...);
Where the … resembles other party members i would add, is there any way to make it so that changes for the player object is automatically reflected in the game_party[0] or vice versa, where changes in game_party[0] are reflected in the player variable. This being done without having to do either:
player = game_player[0];
or
game_player[0] = player;