View.Set and View.Update
Author |
Message |
TheBoyWhoTried
|
Posted: Wed Dec 02, 2015 7:40 pm Post subject: View.Set and View.Update |
|
|
Hi,
So I've been familiarizing myself with View.set and View.Update but i've messed myself up in trying to learn in and am now totally confused. As it's purpose is to eliminate flickering in animation, could someone show me a small example with say squares just gliding across the screen please. Maybe I'll be able to actually deciphered what I'm confused about exactly and understand my mistakes from analyzing an example. Thank you.
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
TokenHerbz
|
Posted: Wed Dec 02, 2015 9:34 pm Post subject: RE:View.Set and View.Update |
|
|
I think this link explains it perfectly and offers a great example also.
http://compsci.ca/holtsoft/doc/view_update.html
Grab that code and Comment out View.Set, what happens?
Comment out View.Update, what happens?
Any specific questions after reading that link and playing around with the example be sure to post, i'll be happy to answer.
Also reminder, the View.Update is the last thing you want to do after sorting out all the pictures, as it draws everything at once.
|
|
|
|
|
|
TheBoyWhoTried
|
Posted: Wed Dec 02, 2015 10:10 pm Post subject: Re: View.Set and View.Update |
|
|
I've actually been looking at this example beforehand, since it's in turing documents it's how i kind of learned about those two commands. It seems that it doesn't work the way i thought it did. To get a better idea, could someone please explain to me why the following program isn't "animated"
Description: |
|
Download |
Filename: |
animationinprogress.t |
Filesize: |
220 Bytes |
Downloaded: |
95 Time(s) |
|
|
|
|
|
|
|
|