0 Members and 1 Guest are viewing this topic.
.GRAYClrHomeClrDrawClrDraw^R //clear buffers[FFFFFFFFFFFFFFFF->Pic1 //16 F's. a black square. which we will make.. gray (:0->X->Y // coordinatesRepeat getKey(15)Pt-Change(X,Y,Pic1 // draw the black squarePt-Change(X+8,Y,Pic1)^r // draw a black square on the back buffer 8 pixels to the rightDispGraph^r // draw buffer (with black square) and draw the square on the back buffer with a checkerboard patternPt-Change(X,Y,Pic1 // to create grayscalePt-Change(X+8,Y,Pic1)^rX+getKey(3)-getKey(2)->XY+getKey(1)-getKey(4)->Y // Movement codeEnd
did you get that to compile? i think you meant clrdraw and clrdraw^r, not clrhome.
yes, but a sprite is 8x8, right? so if you use a blank 8x8 sprite it'll also erase anything close to the sprite on the buffer. pt-change ONLY changes the black pixels of the sprite to white, which makes it perfect to use. also, if you wanted to, you could use pt-off, which would do the same thing. pt-off clears the 8x8 area.