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

Username:   Password: 
 RegisterRegister   
 Creating A "Scene"
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
xSavage




PostPosted: Mon Dec 14, 2015 7:35 pm   Post subject: Creating A "Scene"

What is it you are trying to achieve?
So, for ICS, our teacher asked us to make a scene in Turing.


What is the problem you are having?
The problem I've been having is that I have a small gap between my two for loops.


Describe what you have tried to solve this problem
I've tried using these commands: View.Set ("offscreenonly") , View.Update () and View.Set ("nooffscreenonly")
. Although, I'm pretty sure I'm placing them in the wrong places.

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)


Turing:


View.Set ("offscreenonly")

drawfillbox (1, 1, 640, 120, 186)
drawfilloval (1, maxy, 80, 80, yellow)

View.Update ()

for k : 1 .. 20
    drawdot (20 + k, 300 - k, black)
    delay (100)
    View.Update()
end for



View.Set ("nooffscreenonly")

    View.Set ("offscreenonly")

for i : 1 .. 220

    drawfilloval (300 + i, 350, 20, 20, grey)
    drawfilloval (315 + i, 330, 20, 20, grey)
    drawfilloval (315 + i, 360, 20, 20, grey)
    drawfilloval (330 + i, 345, 20, 20, grey)
    drawfilloval (340 + i, 360, 20, 20, grey)
    drawfilloval (340 + i, 330, 20, 20, grey)
    drawfilloval (360 + i, 350, 20, 20, grey)
    delay (65) 
       View.Update()
    drawfilloval (360 + i, 350, 20, 20, white)
    drawfilloval (340 + i, 330, 20, 20, white)
    drawfilloval (340 + i, 360, 20, 20, white)
    drawfilloval (330 + i, 345, 20, 20, white)
    drawfilloval (315 + i, 360, 20, 20, white)
    drawfilloval (315 + i, 330, 20, 20, white)
    drawfilloval (300 + i, 350, 20, 20, white)

end for

View.Set ("nooffscreenonly")



Please specify what version of Turing you are using
4.1.1
Sponsor
Sponsor
Sponsor
sponsor
Jeffmagma




PostPosted: Mon Dec 14, 2015 9:10 pm   Post subject: RE:Creating A "Scene"

a small gap? I've run your code and i don't see a gap... unless you mean a space gap?

also, why do you have a View.Set("nooffscreenonly") then immediately a
View.Set ("offscreenonly")? And a View.Set("nooffscreenonly") at the end?
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  [ 2 Posts ]
Jump to:   


Style:  
Search: