So here goes... I have 4 players in my game... and rather than doing the same exact events for all of them, I decided to do a "for" loop to get everything done in one... which I have done for mostly everything in my game.... however... here is my situation:
My Player is setup with an instance called "Player" to which 1 - 4 is labeled just that... 1, 2, 3 and 4. My gamepads, being listed from 0 - 3 however (0 being the first) I need to change my for statement a bit, so this is what I have:
System: For "" from 0 to 3
Player: Player = loopindex +1 //Gets the proper instance
Gamepad: Gamepad loopindex D-pad up is down
?Do something
Directional seems to work just fine for the most part.... But if I try this with buttons:
System: For "" from 0 to 3
Player: Player = loopindex +1 //Gets the proper instance
Gamepad: Gamepad loopindex Button A is down
?Do something
It doesn't seem to work... or is sparatic, and very un-predictable... completely useless... or just skips over it. What am I doing wrong?
If I spread it out (not in a "for" loop) it works flawlessly:
Player: Player = 1 //Gets the proper instance
Gamepad: Gamepad 0 Button A is down
?Do something
Player: Player = 2 //Gets the proper instance
Gamepad: Gamepad 1 Button A is down
?Do something
Player: Player = 3 //Gets the proper instance
Gamepad: Gamepad 2 Button A is down
?Do something
Player: Player = 4 //Gets the proper instance
Gamepad: Gamepad 3 Button A is down
?Do something
I've fiddled with this now for two days... and rather than having an extra 300 events in my game, I would rather keep it down to 75 with the "for" loop for my inputs.
Any help?