Welcome Guest [Log In] [Register]



Skin Updated
Welcome to The games place. We hope you enjoy your visit.

Join our community!

If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Scrolling Shooter Help; Scrolling Shooter Problem...
Topic Started: Sep 25 2005, 03:07 PM (167 Views)
flubmasterQ
No Avatar
newcomer
Hi, I'm making my first game which is a scrolling shooter, and it's doing good except for one part that I've done. I don't beleive in tutorials, so, I'm trying to do everything by myself, so here's the problem:

When the plane shoots the bullet, how do I make the object that the bullet hit dissapear? I've already tried destroying the instance, but that didn't work.
Offline Profile Quote Post Goto Top
 
flubmasterQ
No Avatar
newcomer
Okay, I figured out my problem with that, but I have on more. How do I make it so that you have to hit all the enemies and then it changes to the next room, not just one?
Offline Profile Quote Post Goto Top
 
EDGE
Member Avatar
EDGE
[ * ]
well there are a few ways. Are you manualy placing all the planes or are you doing it randomly?
Offline Profile Quote Post Goto Top
 
flubmasterQ
No Avatar
newcomer
I'm putting the enemy planes manually into the room, should I do something else?
Offline Profile Quote Post Goto Top
 
EDGE
Member Avatar
EDGE
[ * ]
ok well probaly the best way to do this is to create a new varible or just score. make sure you add 1 to the score each time you kill a enemy. Once a certen number of enemys are killed do what ever. so for example:

for adding one to your score:
Code:
 
score+=1


and to check if enought enemys have been killed use this:
Code:
 

if score>=howmanykillsneeded
//do what ever you want here
//for example room_goto_next()
Offline Profile Quote Post Goto Top
 
Guest
Unregistered

Thats an extremely difficult way.

Heres the easiest way...

Create an object named obj_Enemies

how make all the enemies parents obj_Enemies by finding where it says parent in the objects information, just below sprite and Solid...

now make, in your main guys Step Event, the Drag and Drop icon that says "When a number of instances is a value" and make the instances be obj_Enemies

Now when there is nothing left with the parent obj_Enemies, the game will do whatever you put after that Drag and Drop action, for example, if next room exists, go to next room.

Hope you understand...
Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Game Maker in general · Next Topic »
Add Reply