| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		RedMaverickZero Three pointed, red disaster! Halloween 2006 Creativity Winner
  
 
  
  Joined: 12 Jul 2003 Posts: 1459
 
  | 
		
			
				 Posted: Fri Jul 25, 2003 11:49 pm    Post subject: Speed Up Script! | 
				     | 
			 
			
				
  | 
			 
			
				Is there a way to plotscript to make the hero run faster for a short period of time? Like through a script you know, where the game takes control of the character? Because that could come in handy somewhere along the line in my game I am working on now. _________________ ---------------Projects----
 
Mr.Triangle's Maze:  70%
 
Takoyaki Surprise: 70% | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Setu_Firestorm Music Composer
 
 
  
  Joined: 26 Mar 2003 Posts: 2566 Location: Holiday. FL
  | 
		 | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Cube Dimensional Traveller
 
 
  
  Joined: 02 Feb 2003 Posts: 294
 
  | 
		
			
				 Posted: Sat Jul 26, 2003 12:08 am    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				Yeah:
 
 
set hero speed (me, speed)
 
 
Now, I'm not sure what you mean by "a short period of time".  You could mean for the duration of a script, or until something else is activated, or for a specific number of seconds.
 
 
If it's for the duration of the script, you'd just set the hero speed to a higher number at the very beginning of the script, and back to the walking speed at the end.
 
 
If something needs to be activated, just make 2 scripts where one increases the speed at the beginning of the event, and then another which returns the speed to normal when the event is complete.
 
 
If it's for a specific number of seconds, you'd just use a wait command in a single script.  At the beginning of the script, you'd increase the speed, add a wait command in there somewhere (I found that waiting 17 or 18 ticks is about a second on my computer (I think... I can't remember all too much  )).
 
 
Or if it's something completely different, just let me know, heh. | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		 |