Thanks for your detailed description. It makes sense to me now.
I have a 3 player platform game with three types of characters (A, B, C). In the player selection screen, when a player selects a character (say player 3 selects B), a global variable called BPlayerNum is set to 3.
Then, in game, all actions for player type C has the input set to Player global('C')
Which works great. The problem is setting the characters animation to the player sprite with the platform animation which happens every tick (always condition).
I was trying to avoid having 9 conditions in the always condition through my entire game:
If APlayerNum=1 then set A's animations to Player1
If APlayerNum=2 then set A's animations to Player2
If APlayerNum=3 then set A's animations to Player3
If BPlayerNum=1 then set B's animations to Player1
If BPlayerNum=2 then set B's animations to Player2
If BPlayerNum=3 then set B's animations to Player3
If CPlayerNum=1 then set C's animations to Player1
If CPlayerNum=2 then set C's animations to Player2
If CPlayerNum=3 then set C's animations to Player3
I'm trying to make a .cap right now to make my explanation more clear.
I'm trying to be a more elegant coder. Right now I use brute force way to much