| Mirage Source http://miragesource.net/forums/ |
|
| Item Animations http://miragesource.net/forums/viewtopic.php?f=210&t=2420 |
Page 1 of 1 |
| Author: | Rezeyu [ Thu Aug 09, 2007 5:34 am ] |
| Post subject: | Item Animations |
Another quick thing, I'm just in a tutorial mood. there's probably a much better way to do this, but whatever works. Find: Code: ' Index of actual player Public MyIndex As Long And add: Code: Public ItemAnim As Byte There? good. Now lets hit up the map animation timer, search for: Code: Change map animation every 250 milliseconds And add: Code: ItemAnim = ItemAnim + 1 If ItemAnim = 3 Then ItemAnim = 0 End If Somewhere before the: MapAnimTimer = GetTickCount Done? Almost there then, head over to BltItem, in the With rec Now change: Code: .Left = 0 To: Code: .Left = ItemAnim * 32 Obviously for ever animation frame you want, add +1 to the 'If ItemAnim = 3 Then' line. |
|
| Author: | Braydok [ Tue Aug 14, 2007 1:08 am ] |
| Post subject: | Re: Item Animations |
If you want to animate seamlessly, without a blank space between frames, change Code: ItemAnim = ItemAnim + 1 If ItemAnim = 3 Then ItemAnim = 0 End If To: Code: ItemAnim = ItemAnim + 1 If ItemAnim = 2 Then ItemAnim = 0 End If Thought that might be helpful. |
|
| Author: | Rezeyu [ Tue Aug 14, 2007 6:01 pm ] |
| Post subject: | Re: Item Animations |
I have three frames to my item animations. |
|
| Author: | Robin [ Tue Aug 14, 2007 6:11 pm ] |
| Post subject: | Re: Item Animations |
Braydok wrote: If you want to animate seamlessly, without a blank space between frames, change Code: ItemAnim = ItemAnim + 1 If ItemAnim = 3 Then ItemAnim = 0 End If To: Code: ItemAnim = ItemAnim + 1 If ItemAnim = 2 Then ItemAnim = 0 End If Thought that might be helpful. -slaps- You just assumed he used two frames? Idiot. |
|
| Author: | Fabzy [ Mon Aug 27, 2007 2:40 pm ] |
| Post subject: | Re: Item Animations |
does this make items in your inventory animated ? |
|
| Author: | Rezeyu [ Mon Aug 27, 2007 2:54 pm ] |
| Post subject: | Re: Item Animations |
I don't think so, I've never used the visual inventory, so I dunno. Although making it do so wouldn't be hard. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|