I need help on scrolling 
	 
	
		| Author | 
		Message | 
	 
		 
		ragex
 
 
 
    
		 | 
		
		
			
				  Posted: Sat Dec 13, 2003 2:26 pm    Post subject: I need help on scrolling  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				This is my retarded pacman game that i wrote, its a start, but i cant seem to get my pacman to stay on the screen or keep moving when you let go of the arrow keys.  If you can help me plz e-mail me.
		
	
  
          
							 
	
	
		
	 
	
		|  Description: | 
		
			
			
				| This is the program, it has the source code in it. | 
			 
			 
		 | 
		  Download | 
	 
	
		|  Filename: | 
		 New Pacman.rar | 
	 
	
		|  Filesize: | 
		 226.25 KB | 
	 
	
		|  Downloaded: | 
		 341 Time(s) | 
	 
	 
	 
		
 | 
			 
			
				 | 
			 
		  | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
		 
		Sponsor Sponsor 
		 
  
		 | 
		
 | 
	 
	 
		  | 
	 
				 
		AsianSensation
 
 
 
    
		 | 
		
		
			
				  Posted: Sat Dec 13, 2003 3:16 pm    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				in your code, you are only drawing pacman when a key is pressed down. so naturally when no key is pressed, then pacman is not drawn. I suggest that at the end of your loop or something, draw pac-man once, but make sure to remember which way he is facing.
 
 
btw, do try and use View.Update, I was getting a headache watching the thing flickering.
		
 | 
			 
			
				 | 
			 
		  | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
				 
		DanShadow
 
  
 
    
		 | 
		
		 | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
				 
		DanShadow
 
  
 
    
		 | 
		
		
			
				  Posted: Sat Dec 13, 2003 6:38 pm    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				Actually, even better! I just wrote a tutorial on graphical RPGs, and it includes the secret to make scrolling games. Just goto here:
 
[Tutorial] Graphical RPG 
 
http://www.compsci.ca/v2/viewtopic.php?t=2524
		
 | 
			 
			
				 | 
			 
		  | 
	 
	 
		 | 
		
		 | 
	 
	  
		  | 
	 
				 
		 | 
	 
 
	
	
	 
	
	 |