This example creates 5 sprites, randomly sets one sprite's instance variable (sprite.moving) to 1
Then every 1 second destroys a random sprite and creates another one.
If the sprite's instance variable (sprite.moving) is set to 1 it will rotate it to 45 degrees.
You can change the number of sprites easily, so 500 sprites would still only be 7 events.
Hope this is helpful.