Page 1 of 1
		
			
				change animation
				
Posted: 
Mon Apr 27, 2009 12:03 am 
				by j2graves
				ok, there's this situation where I want a certain actor to change to a certain animation when another actor (called crosshairs) has a value X greater than the main actor. but I also want it to change to a different animation when crosshairs has a value X lower than the main actor. I want it to understand that it has to keep track of the X value of crosshairs, but when I use DrawActor, it kept starting the animation over and over and it got to where it went between only two frames, and very rapidly. 
I hope this makes sense.
			 
			
		
			
				Re: change animation
				
Posted: 
Mon Apr 27, 2009 12:08 am 
				by jimmynewguy
				try setting the animation direction to stopped
ChangeAnimationDirection(STOPPED); (i think) but it's a funtion so you can just click, if that didn't work can we see a .ged?
			 
			
		
			
				Re: change animation
				
Posted: 
Mon Apr 27, 2009 2:27 am 
				by skydereign
				Okay, this problem occurs as you using the draw actor. That script runs every frame, hence the repeat. If you set the ending to NO_CHANGE, it should work. If not, then maybe you are talking about x discrepancy do to animations, but I am pretty sure it is the previous.
			 
			
		
			
				Re: change animation
				
Posted: 
Tue Apr 28, 2009 4:01 am 
				by BlarghNRawr
				i just make sure to never use animations in draw actor