Okay, I am desperate, I tried for some days to figure out how to address an individuall sprite and alter its instance variable 'angle' but nothing works.
Here is what I have done so far to create my game:
What it is supposed to do is:
When I press the 'F'-Button i want to spawn a sprite and then call further functions to set some instance variables of the just create sprite.
I want for example to set the angle of the the red team's sprites to 180 degree.
Now, when I press 'F' the sprite is created but its angle is not changed:
It changes only the moment I create a second sprite by pressing 'F' again:
What did I do wrong?
How can I change the angle of the first sprite without having to press F again and spawn a second one?
I already tried to use several pick conditions for the functions 'setFactionRed' and 'set_Tri-Fighter' like for example "pick highest instance variable PilotIDNumber" or pick via "comparing PilotIDNumber to global variable latestSHIPID" but both didn't work.
Thank you very much for your time invested.