public override void Update(GameTime gameTime) { base.Update(gameTime); ScaleAnimation sa = (Animation as ScaleAnimation); if (sa != null) { Scale = sa.Scale; Opacity = sa.Scale; } }
public override void Update(GameTime gameTime) { base.Update(gameTime); ScaleAnimation sa = (Animation as ScaleAnimation); if (sa != null) { Scale = sa.Scale; Opacity = sa.Scale; Rotation = MathHelper.ToRadians(sa.Scale * 360.0f); } }
public void Hide() { Animation = new ScaleAnimation("gfx\\text\\GetReady", 1.0f, 0.0f, _scaleTime); }
public void Die() { Velocity = Vector2.Zero; Animation = new ScaleAnimation("gfx\\monster\\idle\\bm_idle_1", 1.0f, 0.0f, 300); }
public void Show() { Animation = new ScaleAnimation("gfx\\text\\GameOver", 0.0f, 1.0f, _scaleTime); }