
-----------------------------------
Tendulkar
Fri Mar 19, 2004 10:36 am

shooting problem
-----------------------------------
Hey sup ppl! I have to make a game for my final ISP. I am almost done the program. But when my plane shoots the bomb, it gets so many errors there. I want to have the plane shooting more than 1 bomb. Can some one please help me???? The problem with my plane is that it shoots only one bomb at a time and shoot another after the first bomb has gone off the screen.

-----------------------------------
poly
Fri Mar 19, 2004 10:57 am


-----------------------------------
could you please post your code, this way it will be much easier to help/guide you to the right path

-----------------------------------
jonos
Fri Mar 19, 2004 11:02 am


-----------------------------------
first of all, make sure you are using loops and not processes, that may just be your problem, secondly: yes, please post your code, or your .t file, or a zip file with all the images, and lastly: i think dan shadow wrote a tutorial shwoing how to make more than one bomb drop.

a way you could do yours is: when the user presses a button, drop the bomb (a decreasing y value for the bomb), keep checking in the loop to where you want the bomb to go to before you can drop another bomb:

something like:

if bomby = enemy_plane1_x and bomb_1_x (val) = enemy_plane1_y and bomb_1_y (val) = enemy_plane2_x and bomb_1_x (val) = enemy_plane2_y and bomb_1_y (val) = enemy_plane3_x and bomb_1_x (val) = enemy_plane3_y and bomb_1_y (val) 