|
Post by Obi_Won_Kenobi on Feb 18, 2002 11:07:22 GMT
Developing an Connect 4 game: On my screen i have a 5*5 (circles) Grid and i want to just like to Clear a single cirlce piece without CLS'ing rest of the Circles.
|
|
|
Post by fly@aol.com on Feb 19, 2002 2:08:58 GMT
identify the location of the circle you want to clear, and draw a circle there the same color as the background.
|
|
piegopher@hotmail.com
Guest
|
Post by piegopher@hotmail.com on Feb 19, 2002 6:06:49 GMT
If the circles are filled you could use the paint command to fill the circle with the background colour
|
|
Ziggi
Full Member
Posts: 87
|
Post by Ziggi on May 17, 2002 10:27:38 GMT
Faster will be to use PUT and GET GET [STEP](x1!,y1!)-[STEP](x2!,y2!),arrayname[(indexes%)] STEP Enables use of relative coordinates. (x1!,y1!), (x2!,y2!) The screen coordinates of diagonally opposite corners of a rectangle on the screen; image within this rectangle will be stored. arrayname Indicates the array where the image will be stored. indexes% Enable you to start storing the image information in some array element other than the first one.
PUT [STEP] (x!,y!),arrayname# [(indexes%)] [,actionverb] STEP Enables use of relative coordinates. (x!,y!) Screen coordinates of the upper-left corner of the rectangle where you want the stored image displayed. arrayname# Indicates the array where the image is stored. indexes% Enable you to start retrieving the image information from an array element other than the first one. actionverb Displays the image with special effects (XOR default):
PSET Draws image as stored, wiping | XOR Reverses points in the image out any existing image. | with those in existing image PRESET Draws image in reverse colors, | or with background. wiping out any existing image. | Used in successive PUT AND Merges stored image with | statements, with time delays, existing image. | causes stored image to appear OR Superimposes stored image on | and disappear. With movement existing image. | of image, animation achieved.
|
|