Computer Science Canada Need Help Fixing Animation Problem |
Author: | cool1143 [ Sun Dec 06, 2009 8:36 pm ] | ||
Post subject: | Need Help Fixing Animation Problem | ||
ok, ive only got one really simple question... How do you Pic.Draw and have image move upwards, but not leaving behind a few hundred images... like iaf you see on bottom, i have to use n blank image to erase previous drawn arrows...
Please specify what version of Turing you are using 4.1.1 PS: this is kinda urgent... |
Author: | Tony [ Sun Dec 06, 2009 8:44 pm ] |
Post subject: | RE:Need Help Fixing Animation Problem |
I see that you are using pixXor as a draw option. Do you know what does does, as oppose to default picCopy? You can also just clear the whole screen with cls |
Author: | cool1143 [ Sun Dec 06, 2009 9:02 pm ] |
Post subject: | Re: Need Help Fixing Animation Problem |
but if i use cls, then all the other arrows would be cleared, and the images would look choppy... |
Author: | TheGuardian001 [ Sun Dec 06, 2009 9:11 pm ] | ||
Post subject: | Re: Need Help Fixing Animation Problem | ||
This is where the magic of View.Set("offscreenonly") and View.Update come in. using View.Set("offscreenonly") will cause everything you draw to be drawn offscreen. This offscreen image will be drawn on the screen only when you call View.Update. Basically, It causes everything to be drawn at the same time, instead of one by one, removing flickering and choppiness. You use it like this:
|
Author: | cool1143 [ Sun Dec 06, 2009 9:32 pm ] |
Post subject: | Re: Need Help Fixing Animation Problem |
hurray thanks! im gonna expect alot more posts from me in the help section during this week :/ making a game with limited knowledge in turing is hard |