Computer Science Canada MAKING A GAME |
Author: | GOLDEN WEAPON [ Wed May 21, 2003 4:26 pm ] |
Post subject: | MAKING A GAME |
Ok, I am in my first year of programming and my friend and I are way ahead of the class. For our final project we need to make a game with turing. We decided to make a game kind of like and old school space shooter where you shoot at the lines of enemies coming at you from one side of the screen. We started it on the weekend and everything have benn running pretty smoothly except one thing. Whenever we move our jets, the image of the jet at the x,y it was just at stays there once we move and it leavels a trail of the jets behind itself. We tried having a cls after the Input.KeyDown but it makes the screen flash as you play and it takes a few seconds to reload the background each time. So I guess my question is how do I clear the extra jets away without using a cls command? Mod Edit: How about a better title next time? More poelop will probley help you then and sooner. You are lucky Asok did not locke this ![]() |
Author: | Catalyst [ Wed May 21, 2003 4:48 pm ] |
Post subject: | |
if u have turing 4 (i think u do since you have (Input.KeysDown) at the top of ur prog put View.Set ("offscreenonly") then in the loop View.Update cls |
Author: | naoki [ Wed May 21, 2003 4:58 pm ] |
Post subject: | |
also when using the Pic.Draw or Pic.ScreenLoad commands use picMerge as your method of displaying the picture. As well, you won't need picXor after loading the image (a mistake of mine early on) Oh yeah, picMerge only works if your background of your picture is white, so make that happen beforehand. |
Author: | GOLDEN WEAPON [ Wed May 21, 2003 5:06 pm ] |
Post subject: | |
I also have the background image as the Clouds.bmp from windows (some of you might know it). So would it be ok to use picUnderMerge for that image? |
Author: | GOLDEN WEAPON [ Wed May 21, 2003 5:18 pm ] | ||
Post subject: | |||
Ok, it's even worse now. When I start the program, the screen goes totally white. When I try to close the window, it comes up correctly, but when I try to move a jet, the screen goes totally black! HELP!!
arg o yeah there are some vars etc. that don't seem to be part of it but it's a work in progress so just ignore them |
Author: | kythoon [ Wed May 21, 2003 5:23 pm ] |
Post subject: | |
can u attach pictures so we can see whole thing |
Author: | GOLDEN WEAPON [ Wed May 21, 2003 5:36 pm ] |
Post subject: | |
Here are the pics. I had to switch them to .jpg so you'll have to edit a bit of code to use them. |
Author: | Tony [ Wed May 21, 2003 6:31 pm ] |
Post subject: | |
why are pictures loaded as .bmp but files are .jpg? |
Author: | Asok [ Wed May 21, 2003 6:37 pm ] |
Post subject: | |
you can't upload .bmps for some reason *blames Dan* anyways you're better off leaving them in bmp format and putting them into a zip file. |
Author: | nate [ Wed May 21, 2003 7:07 pm ] |
Post subject: | zip |
![]() ![]() * ![]() ![]() ![]() ![]() |
Author: | GOLDEN WEAPON [ Thu May 22, 2003 7:58 pm ] |
Post subject: | |
Sorry about that, but I fixed it myself today. Thanks for your help anyway. |
Author: | Mephi [ Fri May 23, 2003 10:31 pm ] |
Post subject: | ERm.. |
if your screen is completely white its probably cuz u didnt put in enuff View.Updates..... |
Author: | Corpy [ Sun May 25, 2003 9:19 pm ] |
Post subject: | |
I did a program like that and what i did was i had to keep the View.Set ("offscreenonly") in a procedure otherwise the same thing happened. |