public void ChangeFrame(Direction d, float speed, bool gravity)
        {
            GObject.GameSprite.Image = Tileset.Clone(new Rectangle(32 * (int)frame * (!gravity? 0:1), 32 * (int)d, 32, 32), System.Drawing.Imaging.PixelFormat.Format32bppArgb);

            frame += speed * SpriteSpeed;
            if (frame >= 3)
            {
                frame = 0;
            }
        }