Hello everyone, I want to make a zombie survival game sort of like the Call of Duty zombie games. But, I need some help. My game is going to be a top-down view. It will have barriers that zombies can break through and enter. I know how to make the character move and shoot and everything, but I don't understand how to make zombies spawn and just keep coming. I have a basic understanding of Game Maker and how it works. If you could help me, please reply. If you can make as basic as possible with little code and drag-and-drop functions, that would be appreciated. Thank you.
Zombie Survival Game Help
Started by mike3497, Mar 11 2012 10:03 PM
3 replies to this topic
#1
Posted 11 March 2012 - 10:03 PM
#2
Posted 11 March 2012 - 10:12 PM
try out my wave engines in my sig
#3
Posted 12 March 2012 - 03:31 AM
Thanks Jakyl, I will look into your engine. I got everything going good so far in my game. But, now I'm stumped on how to get zombies to spawn at some sort of spawner object. I want the spawner to randomly spawn the zombie object after I kill a zombie, so the game goes on forever. Can someone help me?
#4
Posted 12 March 2012 - 05:40 AM
as far as the killing and respawning goes..
in the code that the zombie dies, you could just add in some random functions like
but i guess if you want them to spawn from actual spawners, then youll have to figure out something else.. like maybe you could
//your code that kills the zombie ^
zombiespawner.spawn=1;[/code]
in Creation event of spawner:
Note: youll probabally have to make a seperate variable for the main creation of the zombies.. or else no zombies will spawn..
in step event of spawner:
i haven't tried something like this though.. so not sure if it would work..
edit: yeah, you might not have to make another variable if you have zombies placed in the room or code for zombies in some creation event.
in the code that the zombie dies, you could just add in some random functions like
//your code that kills the zombie ^
randspawn=irandom(100)
if randspawn = 1
{
instance_create(whatever the x value is that you want,whatever the y value is that you want,whatever your zombies are called)
}
but i guess if you want them to spawn from actual spawners, then youll have to figure out something else.. like maybe you could
//your code that kills the zombie ^
zombiespawner.spawn=1;[/code]
in Creation event of spawner:
spawn=0;
Note: youll probabally have to make a seperate variable for the main creation of the zombies.. or else no zombies will spawn..
in step event of spawner:
if spawn=1
{
randspawn=irandom(100)
if randspawn=1
{
instance_create(x,y,(zombie object name here))
spawn=0;
}
}i haven't tried something like this though.. so not sure if it would work..
edit: yeah, you might not have to make another variable if you have zombies placed in the room or code for zombies in some creation event.
Edited by st4k3r 4 lyf, 12 March 2012 - 05:44 AM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











