update platform sprite on state change