woke up at 6:30 am and had the solutuion in my brain, hopped into nesmaker and tested it:
To avoid slowdowns when there are too many objects in your screen, instead of adding inputs for every single object you might control, do this instead:
1: always remember that immediatly after you create the new object you want to control, add "STA player1_object" or "STA player2_object" to the next line (player2 only if you switching to/spawning the player 2 object)
2: add this code to the beginning of all your input scripts
Code:
TXA
LDA controllerNumber_hold
BNE +player2
LDX player1_object
JMP +
+player2
LDX player2_object
+
STA temp
3: in all your input functions, always refer to "temp" instead of "player1_object" or "player2_object"
4: set up both player 1 and player 2 inputs only once each to use the same scripts
now you have a much cleaner input editor screen, no need to have separate scripts for player 2, and your game isnt contantly trying to control 2-4 (or more) non existant character objects all at the same time, causing huge slowdowns