Point & click Adventure movement
  
    
    	
    	| 
        Author: |  Wormware
         | 
        Submitted: |  20th May, 2003
         |  
        | 
        Views: |  6601
         | Rated: | 
        
        		
         |  
         
     | 
   
    
       
      
      
You know what the trubble is with normal movements for adventure characters, they can't walk around objects..
 
 
 
Here is what you should do..
 
 
Every frame has a central point, from that point, you can walk to every object in the frame. When a character is at object 1 and you want him to walk to object 2, the character shoots a invissible bullet towards point 2 (near object 2). 
 
 
--If the bullet arrives, the character starts to walk towards object 2 and stops on point 2 where he can pick up something, exame something etc.
 
 
--If the bullet doesn't arrive object 2, (because of an other object standing in the way. The hero starts to walk the the central point and the n towards point 2..
 
 
 
Quite simple..
 
 
Counters:
 
 
1: Counter -A- is 1: character looks at object 1
 
 
2: Counter -A- is 11: character looks at central point If character arrives, subtract 10 of the counter and the charater will just walk towards object 1...
 
 
3: counter -A- is  0, character stops. 
 
 
4: counter -A- < 1 character starts walking
 
 
5: User clicks on object 2, set counter -B- to 2. When bullet arrives set counter -A- to 2 when not, to 12..
 
 
Easy..
 
 
 
-When you've got questions, you can mail me: wormware@hotmail.com
 
 
-When you want an example, mail me too, I'll send you an KnP example..  
 
 
-When jou don't beleve it works, read again or mail me too ;D
 
 
 
Good luck clickers!!
 
 
 
 
 |  
  
 
	
	 
	
	 
	
	
		
		
  
	
	
 | 
  Wormware 
Registered  20/05/2003
 Points  1031
  
 
	 |