Computer Science Canada crosshair, whitespace around image and collision problems [URGENT!!] |
Author: | alexcaz [ Tue Jan 23, 2007 9:39 pm ] | ||
Post subject: | crosshair, whitespace around image and collision problems [URGENT!!] | ||
i am making this game called hold the beach, since i didnt have time to do real 3d graphics engine, i cheated and used a special circular picture as a background for the 3d effect, the gun is also stationary in one position to save myself some trouble. right now the crosshair is drawn in green at the center of the screen (permantely), i am using Mouse.where to move the background so that if you move your mouse to the right then the background follows you, but the mouse cursor moves faster than the screen for some reason, and now the crosshair is still in the middle but the mouse cursor is like at the end of the screen, (making collision more difficult to make. could anyone please explain to me how would i be able to get the cursor and crosshair moving at the same speed and all stay in the middle (like doom), this is very urgent so will anyone that has any solution or idea please post a reply??!! thank you all who replies in advance my code is as followed:
There is also large amounts of white space around the pictures, i can't seem to be able to fix it would anyone be kind enough to fix it for me or explain how to fix it to me? The soldiers dont yet pop up and walk down, if anyone would explain to me how that will be very much appretiated See attachment for pictures, music and the source codes |
Author: | Xianxin [ Tue Jan 23, 2007 9:44 pm ] |
Post subject: | Re: crosshair, whitespace around image and collision problems [URGENT!!] |
Lmao, Alex. I'd laugh if someone steals your program and hands it in tomorrow. For the white problem, I have the same problem for my Knight since it's not actually coloured white. spearmonkey2000's solution is to colour that area white. |
Author: | alexcaz [ Tue Jan 23, 2007 10:21 pm ] |
Post subject: | Re: crosshair, whitespace around image and collision problems [URGENT!!] |
yo wayne doesnt matter eh, if they did, i'll just give shantz this lol. its proof. and y the heck u talking on here for. thats wat msn's for lol. where the white thing it doesnt work for mine for some reason |
Author: | CodeMonkey2000 [ Wed Jan 24, 2007 9:07 pm ] |
Post subject: | Re: crosshair, whitespace around image and collision problems [URGENT!!] |
I think there is something wrong with JPEG. Try saving it as a bitmap, and then fill in the white spaces in Ms paint. In your main program, change the name from mgun.jpeg to mgun.bmp. I tried to fix up your gun, youll need to finish the rest. |
Author: | alexcaz [ Thu Feb 01, 2007 11:12 am ] |
Post subject: | Re: crosshair, whitespace around image and collision problems [URGENT!!] |
well thanks, but its a bit late now... had to hand it in like a week ago lol. anyways anyone wana help me finish the game????????????????? |