Okay, well then I'm going to have to find a way to make it happen after the first tick, because I need to color filter several objects that are created at once, based on each player's number.
As you can see with the example below, only one of the sprites is being colored.
What I'm doing is, upon network connection, each client that connects to the server is given a unique number. After that, a random start position on the map is chosen for that player, and a starting building and harvesters are created. Rather than have to draw each color of each unit and building, I drew them all white, with the intention of using the color filter to apply colors after creation.
EDIT: I made a 'only trigger once' event, based on whether or not the player has a number assigned yet, and moved it above the section that creates the sprites, so that it triggers on the second tick after creation. It works, but I'd still like to get that code out of the main loop.