Computer Science Canada my school project, come in and help me out |
Author: | BPhelmet [ Mon Dec 20, 2004 9:42 pm ] |
Post subject: | my school project, come in and help me out |
this is my program, it is big because of the map. it is a fighter plane game, my problem is i don't know how to make the plane shoot mutiple bullets and moving while shooting. can anyone help me out? Why can't i upload stuff???[/b] |
Author: | BPhelmet [ Mon Dec 20, 2004 9:45 pm ] |
Post subject: | |
it says "Upload Error: Could not upload Attachment to ./../bbs/files/ace.zip." what can i do? |
Author: | Tony [ Tue Dec 21, 2004 11:43 am ] |
Post subject: | |
how big is the file in size? that could be an issue.. as to shooting and movement: you got to make your spaceship and missiles separate objects, independant of each other. This way during each loop pass, you can move one, then the other. keep in mind that you move each by 1 unit. You do not have an internal loop dedicated to just one object. |
Author: | BPhelmet [ Tue Dec 21, 2004 12:18 pm ] | ||
Post subject: | |||
it is only 2.5MB here's how i did it
|
Author: | BPhelmet [ Tue Dec 21, 2004 12:20 pm ] |
Post subject: | |
that is only part of the program my friend is on his way to send the whole pakage |
Author: | Yenan [ Tue Dec 21, 2004 12:27 pm ] |
Post subject: | |
Here's the background |
Author: | BPhelmet [ Tue Dec 21, 2004 12:28 pm ] |
Post subject: | |
and you can ignore the enemy plane part, i haven't got that far yet. well, i still have problem getting the computer to draw the enemy planes |
Author: | BPhelmet [ Tue Dec 21, 2004 12:48 pm ] |
Post subject: | |
there it is |
Author: | Cervantes [ Tue Dec 21, 2004 3:09 pm ] |
Post subject: | |
You have an upload capacity of 2.0mb, which is why you couldn't upload it. As to your question: Read up on Flexible Arrays. They will allow you to create an object (a bullet) whenever you hit the fire button on the keyboard. You can keep track of various aspects of that object (the bullet) as the rest of the program is running. Don't skip over the dueling game at the end of the first post, it's pretty much exactly what you are looking for. |
Author: | BPhelmet [ Tue Dec 21, 2004 7:28 pm ] |
Post subject: | |
thanx |
Author: | BPhelmet [ Tue Dec 21, 2004 9:16 pm ] |
Post subject: | |
Cervantes wrote: You have an upload capacity of 2.0mb, which is why you couldn't upload it.
As to your question: Read up on Flexible Arrays. They will allow you to create an object (a bullet) whenever you hit the fire button on the keyboard. You can keep track of various aspects of that object (the bullet) as the rest of the program is running. Don't skip over the dueling game at the end of the first post, it's pretty much exactly what you are looking for. i don't quite understand you program, is it possible to just put all the couunting and drawing together, is there any other way to do this exept yours. |
Author: | Cervantes [ Tue Dec 21, 2004 9:36 pm ] |
Post subject: | |
BPhelmet wrote: i don't quite understand you program, is it possible to just put all the couunting and drawing together, is there any other way to do this exept yours. what do you mean, the counting and drawing? I think I put all the drawing at the end, and everything else (input and manipulation) before it. You could use processes. But, no. Do not do that. This is the best way to do it. Trust me. |
Author: | BPhelmet [ Tue Dec 21, 2004 10:06 pm ] |
Post subject: | |
what's that += suppose to mean? |
Author: | BPhelmet [ Tue Dec 21, 2004 10:11 pm ] |
Post subject: | |
o man, i still don't get it, can you just download my program and help me fix it? please |
Author: | Neo [ Tue Dec 21, 2004 10:15 pm ] |
Post subject: | |
BPhelmet wrote: what's that += suppose to mean?
+= means to increment. Like x+=1, increases x by 1, same as x:=x+1 but shorter. |
Author: | Cervantes [ Tue Dec 21, 2004 10:19 pm ] |
Post subject: | |
Tell us your problem. Be specific. Tell us the gory details. |
Author: | Neo [ Tue Dec 21, 2004 10:46 pm ] | ||
Post subject: | Re: my school project, come in and help me out | ||
BPhelmet wrote: this is my program, it is big because of the map.
it is a fighter plane game, my problem is i don't know how to make the plane shoot mutiple bullets and moving while shooting. OK, this example may help you out a bit.
|