Posted: 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
Turing:
View.Set("graphics, offscreenonly") var x :int:=50
Posted: 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
Insectoid
Posted: 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.
Dreadnought
Posted: Wed Nov 21, 2012 8:11 pm Post subject: Re: View.Update?
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?
bvbjules13
Posted: 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
bvbjules13
Posted: Wed Nov 21, 2012 8:16 pm Post subject: Re: View.Update?