Page 1 of 1

PostPosted: Sun Sep 15, 2002 7:18 am
by AcId_Bl0oD
Hello there! im coding one Tap Image Game only to see what i can do with pocketC!

ive done it... but i need one more thing....
that is "erase" the bitmap!

whats the command to erase a bitmap ? or delete it ? thankz.

PostPosted: Sun Sep 15, 2002 1:11 pm
by Clayton
I dont really know the command right now but you could replace it with a blank image temporarily for your game.

Really need to know why you want to delete it tho .


PostPosted: Sun Sep 15, 2002 4:16 pm
by soinsg
I don't think you can erase bitmaps, I always use rect() or if it's a moving sprite make the the bmp have a 2 pixel border that is blank.

PostPosted: Wed Sep 18, 2002 12:26 pm
by AcId_Bl0oD
Ok ppl! Thankz! one more question :

Whats the code to END a program ?

Ive tryed return(0) and return(1) ... but it doesnt works :\


PostPosted: Wed Sep 18, 2002 3:41 pm
by soinsg
To "quit" main() just use "return;". To end a function early you can also use return and set the return value if you want:

func1(int i) {
if (i > 5) return;
else return i*5;

To exit to the Launcher you can use exit(), also launch() can be used to launch other programs on the Palm by passing it their CID, the most common example being:

PostPosted: Wed Sep 18, 2002 6:02 pm
by AcId_Bl0oD
Hey man!
Thankz again!
you're a cool man .. ya know.. hehe