flxSharp.flxSharp.FlxSprite.randomFrame C# (CSharp) Méthode

randomFrame() public méthode

Tell the sprite to change to a random frame of animation Useful for instantiating particles or other weird things.
public randomFrame ( ) : void
Résultat void
        public void randomFrame()
        {
            _curAnim = null;
            _curIndex = (int) (FlxG.random() * (_pixels.Width / FrameWidth));
            Dirty = true;
        }