Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 View.Update not owrking
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
evildaddy911




PostPosted: 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



1.txt
 Description:
the first level i made (to use as a tutorial)

Download
 Filename:  1.txt
 Filesize:  4.97 KB
 Downloaded:  48 Time(s)


gravity proc.t
 Description:
this is the procedure that determines the gravity between 2 objects

Download
 Filename:  gravity proc.t
 Filesize:  1.35 KB
 Downloaded:  42 Time(s)


gravity game.t
 Description:

Download
 Filename:  gravity game.t
 Filesize:  3.74 KB
 Downloaded:  43 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
evildaddy911




PostPosted: 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




PostPosted: 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
evildaddy911




PostPosted: 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...
Tony




PostPosted: 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

?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: