RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

I need some help...

K

KevinEvans

Guest
I need some help...

I cant figure out what i am doing wrong.
I get the exception [Index was outside the bounds of the array.] if i use frame[1]... There should be a frame[1] though...

any ideas?

Code:
            TotalValue = Animations.GetAnimation(400, 0, RotateValue, 0, true).Length;
            Frame[] frames = Animations.GetAnimation(400, 1, RotateValue, 0, true);
            //this.Text = AnimateFrame.ToString() + "/" + TotalValue.ToString();

            this.pictureBox1.Image =[B][U] frames[0].Bitmap [/U][/B];

but, in VB.Net, it works fine :/
Code:
                Dim img() As Frame
                img = Animations.GetAnimation(Body, 0, RotateValue, 0, True)
                TotalValue = Animations.GetAnimation(Body, 0, RotateValue, 0, True).Length()
                Me.PictureBox1.Image = img(Animate).Bitmap
 
Top