public AnimationSet(Player player) { this.player = player; this.forward = new Animation(TextureBin.Get("pfront"), 1, 8, 2); this.backward = new Animation(TextureBin.Get("pback"), 1, 8, 2); this.forwardPick = new Animation(TextureBin.Get("pfrontgrab"), 1, 8, 2); this.backwardPick = new Animation(TextureBin.Get("pbackgrab"), 1, 8, 2); this.fStand = new Animation(TextureBin.Get("pfrontstand"), 1, 8, 2); this.bStand = new Animation(TextureBin.Get("pbackstand"), 1, 8, 2); this.current = this.forward; }
public void Update() { if (timer > 0) timer--; else this.current = forward; current.Update(); /*if (player.onGround) { current.frames = 1; } else { current.frames = 5; }*/ }