Computer Science Canada

2 player shooting game help

Author:  outsource [ Mon Dec 05, 2005 6:21 pm ]
Post subject:  2 player shooting game help

Ok, well, im having some problems, a blue box, which will later be a powerup, is supposed to move across the screen, it does but is very flashy and glitchy, the code in which it is made has comments above it so it is easy to find. Also, when someone overheats (temperature gets to 50000), the game goes insane, you move really slow and when u shoot it shoots one big line and the shooter overheats in like 5 seconds. Any help is greatly appreciated.

Author:  RedRogueXIII [ Mon Dec 05, 2005 6:45 pm ]
Post subject: 

try changing all your processes into procedures and incorporating them into your main game loop, processes are bad for everything but music.

Author:  outsource [ Mon Dec 05, 2005 6:57 pm ]
Post subject: 

when i try that it stops the main procedure when it gets to the procedure thats being plugged into it and waits until the other procedure finishes before it goes again.

Author:  Tony [ Tue Dec 06, 2005 9:48 am ]
Post subject: 

Well that's the definition of a procedure, and that's what should be happening.

One step at a time outsource Wink

Make your shot, move it a spot, then leave it off and move the other player's shot. Do whatever else you have to - check for input, move the players, calculate heat.. then when you're all done, come back to that first shot still in progress, and move it another spot. Repeat.

You should be in control of what's happening. If you let everything to run on its own in processes, it will be a chaos, things will glitch out randomly (even if you don't notice it) and the screen will flash no matter what, as everything is being drawn in an unordered fasion.


: