Jump to content


Photo

Zombie Survival Game Help


  • Please log in to reply
3 replies to this topic

#1 mike3497

mike3497

    GMC Member

  • GMC Member
  • 21 posts
  • Version:GM:Studio

Posted 11 March 2012 - 10:03 PM

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.
  • 0

#2 Jakyl11

Jakyl11

    GMC Member

  • GMC Member
  • 3109 posts
  • Version:GM:Studio

Posted 11 March 2012 - 10:12 PM

try out my wave engines in my sig :)
  • 0

#3 mike3497

mike3497

    GMC Member

  • GMC Member
  • 21 posts
  • Version:GM:Studio

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?
  • 0

#4 st4k3r 4 lyf

st4k3r 4 lyf

    GMC Member

  • GMC Member
  • 114 posts

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
//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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users