Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 2 player shooting game help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
outsource




PostPosted: 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.


christmas shootout-1.t
 Description:
Christmas Shootout

Download
 Filename:  christmas shootout-1.t
 Filesize:  5.92 KB
 Downloaded:  113 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
RedRogueXIII




PostPosted: Mon Dec 05, 2005 6:45 pm   Post subject: (No subject)

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




PostPosted: Mon Dec 05, 2005 6:57 pm   Post subject: (No 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.
Tony




PostPosted: Tue Dec 06, 2005 9:48 am   Post subject: (No 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: