dogtimer += 1; if (dogtimer >= 3000) sprite_index = spr_dogshrine_dog_sleep;