Data Realms Fan Forums
http://45.55.195.193/

Sprite Animations?
http://45.55.195.193/viewtopic.php?f=1&t=16716
Page 1 of 1

Author:  Areku [ Thu Oct 01, 2009 2:34 am ]
Post subject:  Sprite Animations?

Ok, so, weapon animation. As far as I used to know, it could have only two frames, one for standby and one for firing, but it seems the coalition gatling gun disproves that.
That said, how would I go on animating a weapon so that it plays the animation once and just then shoots? I tried setting the SpriteAnimDuration to the same value of StartUpDelay, but it yelded no results. Actually, the animation doesn't play at all. Yes, the animMode is at 5. I've got a full 39 frames of animation for the weapon, and I don't want to waste any of them. So, any suggestions?

Author:  Duh102 [ Thu Oct 01, 2009 3:54 am ]
Post subject:  Re: Sprite Animations?

I think 4 is loop through from the beginning, then wrap around. Might want to try that.

Author:  Rawtoast [ Thu Oct 01, 2009 4:38 am ]
Post subject:  Re: Sprite Animations?

Have you tried cannibalizing the Gatling Gun's ini?

Also, does anyone know if reload animations are possible?

Author:  Areku [ Thu Oct 01, 2009 11:00 pm ]
Post subject:  Re: Sprite Animations?

Duh102 wrote:
SpriteAnimMode = 4


Oh. I hadn't noticed that. :oops:

Ok, now it works. On the other hand, the sprite doesn't play only once, even though the AnimDuration is set to the same as the StartUpDelay. Also, it has a nasty tendency to skip some sprites at the begginning. Anyone knows why?

Author:  NaXx [ Fri Oct 09, 2009 5:33 pm ]
Post subject:  Re: Sprite Animations?

[Bump for curiosity]

Author:  Rawtoast [ Fri Oct 09, 2009 7:26 pm ]
Post subject:  Re: Sprite Animations?

*♥♥♥♥*

edited for circumventing the wordfilter

Author:  LowestFormOfWit [ Sat Oct 10, 2009 9:57 pm ]
Post subject:  Re: Sprite Animations?

If I remember correctly the gatling gun only has 2 frames like any other gun.
Anim mode 4 is loop when firing (for guns).

Honestly Lua is much easier to animate with when working with more than 2 frames.

Post your code so I can see what you have.

Author:  Lizardheim [ Sun Oct 11, 2009 7:16 am ]
Post subject:  Re: Sprite Animations?

Wrong, the gatling gun has 3 frames.

Author:  MaximDude [ Sun Oct 11, 2009 10:01 am ]
Post subject:  Re: Sprite Animations?

LowestFormOfWit wrote:
If I remember correctly the gatling gun only has 2 frames like any other gun.
Anim mode 4 is loop when firing (for guns).


I am disappoint.

Author:  LowestFormOfWit [ Mon Oct 12, 2009 4:45 am ]
Post subject:  Re: Sprite Animations?

Having him post the code is a little more important than whether I have the number of frames in the Coal Gatling Gun correct.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/