You can use "Create object named…" and then call System > Pick last created object from Family
Excerpt from my project to create background "on the fly“ :
Not sure that answers my question.
So at the moment i have a family object called "player" in wich i have 2 sprite objects "player_1" and "player_2"
"player_1" inside the family has an instance variable - selected_player = 1
"player_2" inside the family has an instance variable - selected_player = 2
The family itself doesnt have an instance variable set - as i dont know if the individual object from the family needs to have the instace varibale or the family itself.
I also have a global variable called selected_player = 0
When you select player1 from the character selection layout i set that variable to 1 or 2 based on the selection.
At the start of the game layout i create the player object and place it at specific coordinates.
So the question is, how do i get player_1 or player_2 to appear based on that global variable.
Hope it makes sense.
At the moment they show up randomly.
Thank you so much!