Pulse
Introduction
Code Example
using FlatRedBall;
using FlatRedBall.Instructions; Sprite sprite = SpriteManager.AddSprite("redball.bmp");
float smallScaleX = 1;
float smallScaleY = 1;
float largeScaleX = 3;
float largeScaleY = 3;
double period = 1; // how many seconds the grow/shrink lasts
InstructionManager.Pulse<Sprite>(
sprite,
smallScaleX,
smallScaleY,
largeScaleX,
largeScaleY,
period);
Last updated
Was this helpful?