Posted: 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]
Sponsor Sponsor
BPhelmet
Posted: Mon Dec 20, 2004 9:45 pm Post subject: (No subject)
it says "Upload Error: Could not upload Attachment to ./../bbs/files/ace.zip."
what can i do?
Tony
Posted: Tue Dec 21, 2004 11:43 am Post subject: (No 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.
BPhelmet
Posted: Tue Dec 21, 2004 12:18 pm Post subject: (No subject)
Posted: Tue Dec 21, 2004 3:09 pm Post subject: (No 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.
BPhelmet
Posted: Tue Dec 21, 2004 7:28 pm Post subject: (No subject)
thanx
BPhelmet
Posted: Tue Dec 21, 2004 9:16 pm Post subject: (No 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.
Cervantes
Posted: Tue Dec 21, 2004 9:36 pm Post subject: (No 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.
BPhelmet
Posted: Tue Dec 21, 2004 10:06 pm Post subject: (No subject)
what's that += suppose to mean?
BPhelmet
Posted: Tue Dec 21, 2004 10:11 pm Post subject: (No subject)
o man,
i still don't get it, can you just download my program and help me fix it?
please
Neo
Posted: Tue Dec 21, 2004 10:15 pm Post subject: (No 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.