| Author | 
            Message | 
        
        
			| 
				
				 Areku 
				
				
					 Joined: Fri Oct 17, 2008 9:46 pm Posts: 5212 Location: The Grills Locker.
				 
				 
			 | 
			
				
				  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 | 
			
				
					 
					
					 
				    
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Duh102 
				happy carebear mom 
				
					 Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
				 
				 
			 | 
			
				
				  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 | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Rawtoast 
				
				
					 Joined: Mon Apr 06, 2009 9:41 am Posts: 712 Location: New York
				 
				 
			 | 
			
				
				  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 | 
			
				
					 
					
					 
				    
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Areku 
				
				
					 Joined: Fri Oct 17, 2008 9:46 pm Posts: 5212 Location: The Grills Locker.
				 
				 
			 | 
			
				
				  Re: Sprite Animations?  
					
						Duh102 wrote:  SpriteAnimMode = 4  Oh. I hadn't noticed that.     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 | 
			
				
					 
					
					 
				    
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 NaXx 
				
				
					 Joined: Mon Feb 02, 2009 9:18 pm Posts: 618 Location: Ancient Hispania
				 
				 
			 | 
			
				
				  Re: Sprite Animations?  
					
						[Bump for curiosity] 
					
  
			 | 
		
		
			| Fri Oct 09, 2009 5:33 pm | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Rawtoast 
				
				
					 Joined: Mon Apr 06, 2009 9:41 am Posts: 712 Location: New York
				 
				 
			 | 
			
				
				  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 | 
			
				
					 
					
					 
				    
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 LowestFormOfWit 
				
				
					 Joined: Mon Oct 06, 2008 2:04 am Posts: 1559
				 
				 
			 | 
			
				
				  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 | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 Lizardheim 
				DRL Developer 
				
					 Joined: Fri May 15, 2009 10:29 am Posts: 4107 Location: Russia
				 
				 
			 | 
			
				
				  Re: Sprite Animations?  
					
						Wrong, the gatling gun has 3 frames. 
					
  
			 | 
		
		
			| Sun Oct 11, 2009 7:16 am | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 MaximDude 
				
				
					 Joined: Wed Nov 22, 2006 3:19 pm Posts: 2073
				 
				 
			 | 
			
				
				  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 | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
			| 
				
				 LowestFormOfWit 
				
				
					 Joined: Mon Oct 06, 2008 2:04 am Posts: 1559
				 
				 
			 | 
			
				
				  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 | 
			
				
					 
					
					 
				  
			 | 
    	
		
	
	
		  | 
	
	
	
		 |