Adjusted sprite update logic.