|
||
|
|
#1 (permalink) |
|
Join Date: Dec 2004
Age: 25
Posts: 58
|
How would one code a line to show an animation as an image? Heres what I got so far but no luck
Code:
this.pictureBox2.Image = Ultima.Animations.Translate(1); |
|
|
|
|
|
#2 (permalink) |
|
Join Date: Dec 2003
Location: Northwestern Pennsylvania
Posts: 183
|
Translate is just for translating the body Id. You can then put the body id into GetAnimation to get the frames for the animation. The image is shown from a specific frame.
This gets action 4 (I forget what that is now) for body type 987 (Counselor/GameMaster), facing North, with hue 0x8485 (deep red). Put this into a form with a picturebox and it will show the first frame. Code:
Frame[] frames = Animations.GetAnimation(987, 4, 1, 0x8485, true); this.pictureBox1.Image = frames[0].Bitmap; |
|
|
|
|
|
#4 (permalink) |
|
Just increase the value of the array there yeah, can use a timer or whatever to get the speed you want.
( example: ) Code:
private int currentFrame = 0; Code:
this.pictureBox1.Image = frames[currentFrame].Bitmap; currentFrame++;
__________________
Can YOU RunUO? |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|