updating sprite actions and particles