Computer Science Canada

View.Update not owrking

Author:  evildaddy911 [ 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

Author:  Tony [ 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.

Author:  evildaddy911 [ 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...

Author:  Tony [ 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

Author:  evildaddy911 [ 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
Turing:
drawdot (10,10,white)


it still drew the circle...

Author:  Tony [ 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

?


: