| View.Update not owrking 
 
	 
	
		| Author | Message |   
		| evildaddy911 
 
 
 
 
 | 
			
				|  Posted: Tue May 15, 2012 11:40 am    Post subject: View.Update not owrking |  |   
				| 
 |  
				| What is it you are trying to achieve? im trying to create a maze/puzzle game that uses gravity wells to move the object
 
 What is the problem you are having?
 the View.Update call does not seem to be working
 
 Please specify what version of Turing you are using
 open
 
 
 
 
	
		
	 
		| Description: | 
			
				| the first level i made (to use as a tutorial) |  |  Download
 |  
		| Filename: | 1.txt |  
		| Filesize: | 4.97 KB |  
		| Downloaded: | 86 Time(s) |  
 
 
	
		
	 
		| Description: | 
			
				| this is the procedure that determines the gravity between 2 objects |  |  Download
 |  
		| Filename: | gravity proc.t |  
		| Filesize: | 1.35 KB |  
		| Downloaded: | 80 Time(s) |  
 
 
	
		
	 
		| Description: |  |  Download
 |  
		| Filename: | gravity game.t |  
		| Filesize: | 3.74 KB |  
		| Downloaded: | 86 Time(s) |  
 |  
				|  |  |   
		|  |  |  
	  
		|  |   
		| Sponsor Sponsor
 
  
   |  |   
		|  |   
		| Tony 
 
  
 
 
 | 
			
				|  Posted: Tue May 15, 2012 12:19 pm    Post subject: RE:View.Update not owrking |  |   
				| 
 |  
				| it's much more likely that View.Update call works just fine, and your code's logic just doesn't call it at the time you expect. Either way, a 3 file upload is _far_ from a minimal demo of the problem. 
 
 	  | code: |  	  | 
View.Set("offscreenonly")
 Draw.Oval(100,100,10,10,red)
 View.Update
 
 | 
 
 I would guess the above works.
 |  
				|  Tony's programming blog. DWITE - a programming contest. |  |   
		|  |  |  
	  
		|  |   
		| evildaddy911 
 
 
 
 
 | 
			
				|  Posted: Tue May 15, 2012 2:56 pm    Post subject: RE:View.Update not owrking |  |   
				| 
 |  
				| because the oval is the first thing drawn, it will draw it, so the View.Update wont do anything... |  
				|  |  |   
		|  |  |  
	  
		|  |   
		| Tony 
 
  
 
 
 | 
			
				|  Posted: Tue May 15, 2012 3:07 pm    Post subject: RE:View.Update not owrking |  |   
				| 
 |  
				| 	  | code: |  	  | 
View.Set("offscreenonly")
 cls
 Draw.Oval(100,100,10,10,red)
 View.Update
 
 | 
 |  
				|  Tony's programming blog. DWITE - a programming contest. |  |   
		|  |  |  
	  
		|  |   
		| evildaddy911 
 
 
 
 
 | 
			
				|  Posted: Tue May 15, 2012 4:06 pm    Post subject: RE:View.Update not owrking |  |   
				| 
 |  
				| it displays the oval, even when i comment out the View.Update. I also tried replacing cls with 
 
 it still drew the circle...
 |  
				|  |  |   
		|  |  |  
	  
		|  |   
		| Tony 
 
  
 
 
 | 
			
				|  Posted: Tue May 15, 2012 4:41 pm    Post subject: RE:View.Update not owrking |  |   
				| 
 |  
				| mmm... 
 	  | code: |  	  | 
View.Set("offscreenonly")
 cls
 View.Update
 
 Draw.Oval(100,100,10,10,red)
 % should not appear; replace comment with View.Update to test
 
 loop
 delay(100)
 end loop
 
 | 
 ?
 |  
				|  Tony's programming blog. DWITE - a programming contest. |  |   
		|  |  |  
	  
		|  |   
		|  |  
 |