Yes, you have to save the old position to an array using graphical GET...

by TheBOB (Login qb432l)
Mod

 

First, dimension an array:

DIM BGArray(5000) AS INTEGER 'probably bigger than you need...

Then before you draw your circle, use:

GET (currentx - 5, currenty - 5)-(currentx + 5, currenty + 5), BGArray

Now the background with whatever was there, including printing, is stored in the array. Then instead of erasing the white circle with a black circle, you merely PUT the background back to erase it:

IF oldx THEN PUT (oldx - 5, oldy - 5), BGArray, PSET

Don't forget the PSET, otherwise the background will just combine with the circle.

Good luck!
-Bob



    
This message has been edited by qb432l on Jun 16, 2011 5:29 PM

Posted on Jun 16, 2011, 5:14 PM

Respond to this message   

Return to Index

Response TitleAuthor and Date
This still leaves marks aroundZack on Jun 16
 Yeah, you've got the GET in the wrong place...TheBOB on Jun 16
  Ok, thanksZack on Jun 16

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement