private Animation GetStnAnimation(dir d){
        Animation fm = null;
        switch(d){
            case down: fm=stndbydown; break;
            case left: fm=stndbyleft; break;
            case right: fm=stndbyright; break;
            case up: fm=stndbyup; break;    
        }
        return fm;
    }