
-----------------------------------
Sceyef
Fri Dec 12, 2014 7:24 pm

Help with Erasing while dragging objects
-----------------------------------
so like, I have never liked animating in turing.
Here's my code. It's a simple drag-an-object program. Primitive, as the object centers on your cursor and stuff, but it works.
Now here's what I need: I am currently erasing the red square with CLS. Later I need to add a background. How can I do that? Try it yourself, but when I attempt to put the usual identical object with colorbg, there are.. problems..? Even If I make the object bigger. It doesn't erase properly. :/

halp

-----------------------------------
Zren
Fri Dec 12, 2014 7:33 pm

RE:Help with Erasing while dragging objects
-----------------------------------
Draw things that appear underneath first, then draw the thing on top second.


cls % Begin drawing a new frame
Draw.FillBox(0, 0, maxx, maxy, black) % Draw background
Draw.Oval(x, y, r, r, red) % Draw foreground
View.Update() % Done drawing the frame, show it on screen.

