Computer Science Canada View.Update? |
| Author: | bvbjules13 [ Wed Nov 21, 2012 7:40 pm ] | ||
| Post subject: | View.Update? | ||
What is it you are trying to achieve? I am trying to make an animation What is the problem you are having? when the figure reaches near the end of the screen the animation drags, the rest of the animation if fine though. The animation in the code i have posted is a circle moving, but when it is almost off the screen it just stops, in other programs iv made to test this, they dragged, it seems that the animation is not getting cleared from the screen properly or something but i don't know Describe what you have tried to solve this problem used View.UpdateArea also
Please specify what version of Turing you are using Version 4.1 |
|||
| Author: | Dreadnought [ Wed Nov 21, 2012 7:50 pm ] |
| Post subject: | Re: View.Update? |
What does Draw.Fill do? |
|
| Author: | bvbjules13 [ Wed Nov 21, 2012 7:55 pm ] |
| Post subject: | Re: View.Update? |
it allows the circle to dissapear, i cant use cls b/c in my other programs there are other parts of the screen i need on |
|
| Author: | Insectoid [ Wed Nov 21, 2012 8:11 pm ] |
| Post subject: | RE:View.Update? |
So you should be re-drawing only those areas using View.UpdateArea(). You're already doing that, except you're using it to update the whole screen instead of just one small spot. Alternatively (and preferably), just re-draw everything instead of just the circle. |
|
| Author: | Dreadnought [ Wed Nov 21, 2012 8:11 pm ] |
| Post subject: | Re: View.Update? |
http://compsci.ca/holtsoft/doc/draw_fill.html wrote: The Draw.Fill procedure is used to color in a figure that is on the screen. Suppose we pass an (x, y) point to Draw.Fill that is NOT on the screen. What should happen then? |
|
| Author: | bvbjules13 [ Wed Nov 21, 2012 8:15 pm ] |
| Post subject: | Re: RE:View.Update? |
Insectoid @ Wed Nov 21, 2012 8:11 pm wrote: So you should be re-drawing only those areas using View.UpdateArea(). You're already doing that, except you're using it to update the whole screen instead of just one small spot. Alternatively (and preferably), just re-draw everything instead of just the circle.
still doesnt seem to be working for me |
|
| Author: | bvbjules13 [ Wed Nov 21, 2012 8:16 pm ] |
| Post subject: | Re: View.Update? |
Dreadnought @ Wed Nov 21, 2012 8:11 pm wrote: http://compsci.ca/holtsoft/doc/draw_fill.html wrote: The Draw.Fill procedure is used to color in a figure that is on the screen. Suppose we pass an (x, y) point to Draw.Fill that is NOT on the screen. What should happen then? will not draw anything...oh i see....that actually makes sense now to why it didnt work.... |
|
| Author: | bvbjules13 [ Wed Nov 21, 2012 8:20 pm ] |
| Post subject: | Re: View.Update? |
Dreadnought thank you for your help |
|
| Author: | Dreadnought [ Wed Nov 21, 2012 8:25 pm ] |
| Post subject: | Re: View.Update? |
No problem. |
|