View unanswered posts | View active topics It is currently Fri Oct 11, 2024 10:51 am



Reply to topic  [ 10 posts ] 
 Sprite Animations? 
Author Message
User avatar

Joined: Fri Oct 17, 2008 9:46 pm
Posts: 5212
Location: The Grills Locker.
Reply with quote
Post 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?


Thu Oct 01, 2009 2:34 am
Profile WWW
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Sprite Animations?
I think 4 is loop through from the beginning, then wrap around. Might want to try that.


Thu Oct 01, 2009 3:54 am
Profile
User avatar

Joined: Mon Apr 06, 2009 9:41 am
Posts: 712
Location: New York
Reply with quote
Post Re: Sprite Animations?
Have you tried cannibalizing the Gatling Gun's ini?

Also, does anyone know if reload animations are possible?


Thu Oct 01, 2009 4:38 am
Profile YIM
User avatar

Joined: Fri Oct 17, 2008 9:46 pm
Posts: 5212
Location: The Grills Locker.
Reply with quote
Post 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?


Thu Oct 01, 2009 11:00 pm
Profile WWW
User avatar

Joined: Mon Feb 02, 2009 9:18 pm
Posts: 618
Location: Ancient Hispania
Reply with quote
Post Re: Sprite Animations?
[Bump for curiosity]


Fri Oct 09, 2009 5:33 pm
Profile
User avatar

Joined: Mon Apr 06, 2009 9:41 am
Posts: 712
Location: New York
Reply with quote
Post Re: Sprite Animations?
*♥♥♥♥*

edited for circumventing the wordfilter


Last edited by Rawtoast on Fri Oct 09, 2009 7:30 pm, edited 1 time in total.



Fri Oct 09, 2009 7:26 pm
Profile YIM
User avatar

Joined: Mon Oct 06, 2008 2:04 am
Posts: 1559
Reply with quote
Post 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.


Sat Oct 10, 2009 9:57 pm
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: Sprite Animations?
Wrong, the gatling gun has 3 frames.


Sun Oct 11, 2009 7:16 am
Profile
User avatar

Joined: Wed Nov 22, 2006 3:19 pm
Posts: 2073
Reply with quote
Post 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.


Sun Oct 11, 2009 10:01 am
Profile
User avatar

Joined: Mon Oct 06, 2008 2:04 am
Posts: 1559
Reply with quote
Post 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.


Mon Oct 12, 2009 4:45 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.356s | 15 Queries | GZIP : Off ]