i have a game with four players. each of the four character sprites has an instance variable called "player" where the value for the player number is stored.
now i want to respawn them after they died.
and i need something like
spawner -> spawn object with instance variable = 2
i have tried it with adding more conditions like
"character.player = 1" where character is a family ..
i have tried every combination of sub-events and conditions.
the only way to work around would be to have the same sprite for every player but with 4 different animations, just playing the one according to what kind od character he is. but that would mean i had to restructure lots of parts of the game.
a veeeeery simple solution would be to spawn objects by name. then i could use expressions like
spawner -> spawn Object named ("player" & character.player)
but i already suggested placeholders (or wildcards) to scirra and the won't implement it.
can i somehow enter a name instead of choosing a sprite with the .. spawn another object.. .?
im afraid i cant provide a screenshot or a capx because im on my ipad at work.
but i will this evening if needed.