Go Back   RunUO - Ultima Online Emulation > RunUO > Utility Support > Ultima SDK

Ultima SDK Support for the Ultima SDK.

Reply
 
Thread Tools Display Modes
Old 06-09-2009, 09:11 PM   #1 (permalink)
Forum Novice
 
Join Date: Jun 2007
Location: wash state
Posts: 260
Send a message via MSN to KevinEvans
Default 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 = frames[0].Bitmap ;
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
__________________

350.org

Last edited by KevinEvans; 06-09-2009 at 09:15 PM. Reason: ...
KevinEvans is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5