Computer Science Canada Pic Transparency, Collision detection. Need major help. |
Author: | aspire [ Thu Jan 10, 2008 11:15 am ] | ||
Post subject: | Pic Transparency, Collision detection. Need major help. | ||
Hey everyone. Well the time has come for a final term project. My goal is to make a game. I have already hit a great big hard wall :/. I am really lost, I have no idea what to do, and no one has been able to help me in my class. I am in need of help with getting my Picture to become transparent and to get my Collision Detection right. Also, I know my code is EXTREMLY messy. So if anyone is willing to help me get this working and cleaned up, I will be a very happy camper ![]() The picture is attached. Thanks very much, Aspire
|
Author: | Randolf Nitler [ Thu Jan 10, 2008 12:03 pm ] |
Post subject: | Re: Pic Transparency, Collision detection. Need major help. |
I don't understamd, you want your pick to slowly blur until you can't see it on the screen? |
Author: | Tony [ Thu Jan 10, 2008 12:10 pm ] |
Post subject: | RE:Pic Transparency, Collision detection. Need major help. |
Are you talking about transparency (no white background) or alpha-transparency (see-through image)? alpha-transparencies would be computationally intensive, by Turing's standards. to remove just white background, you should be using picMerge mode when drawing inside your loop (just like you did in the initial setup), not picCopy. |
Author: | Zampano [ Thu Jan 10, 2008 3:26 pm ] |
Post subject: | Re: Pic Transparency, Collision detection. Need major help. |
Trying to use pictures (even simple sprites) during gameplay in Turing is a waste of time. That is the short and long of it. |
Author: | ericfourfour [ Thu Jan 10, 2008 5:30 pm ] |
Post subject: | RE:Pic Transparency, Collision detection. Need major help. |
Replace picCopy with picMerge. You should consider making the picture a .bmp file. JPEGs have poor qualtiy when using picMerge. |
Author: | Tony [ Thu Jan 10, 2008 5:41 pm ] |
Post subject: | RE:Pic Transparency, Collision detection. Need major help. |
depends on the quality of the image. Bitmaps are lossless, but JPEGs are often compressed. If the compression results in artifacts on the background area, there will be pixels that don't render white, so those will not merge properly. you could turn compression off though, when saving the image. |