public AnimatieGFX(Texture2D tex,Vector2 pos)
        {
            this.texture = tex;
            this.position = pos;
            animatie = new SpriteAnimation(texture, 8, 1);
            anime = new AnimationClass();

            animatie.AddAnimation("flow", 1, 8, anime.Copy());
            animatie.Animation = "flow";
        }
Ejemplo n.º 2
0
        public AnimateSprite(Texture2D tex, Vector2 pos,int frames,int animations)
        {
            texture = tex;
            //position = pos;
            velocity = Vector2.Zero;

            anime = new AnimationClass();
            animation = new SpriteAnimation(texture,frames,animations);
            animation.Position = pos;
            animation.AddAnimation("normal",1,frames,anime.Copy());
            animation.Animation = "normal";
            bounds = animation.Bounds;
            origin = new Vector2(animation.width / 2, animation.height / 2);
            //bounds = new Rectangle((int)position.X, (int)position.Y, animation.width,animation.height);
        }