3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: Zombie-game help  (Read 638 times)

Anders

« on: April 30, 2011, 10:13:23 AM »
Hi guys :)

Need some help with a Zombie-game I'm making.
And I was wondering if someone could answer me...

In my game it's possible to kill a zombie when a rigidbody
is fired from a projectile and has entered a eventonlocation,
and I was wondering if it was possible that when
i've killed a zombie, it will spawn/clone one more zombie another place?

Does anyone have a script or something like that?

It would be nice if you helped, thanks :)
« Reply #1 on: April 30, 2011, 05:36:23 PM »
Yes it is just make a event on contact and make a rigid body for the zombies and make it lower the health per bullet! ;)
« Reply #2 on: May 01, 2011, 02:04:17 AM »
Here is a nice randomize location script:

Code: [Select]
void Main()
{
   if (iInitializing())
   {
      Vector3 location;
      location.x = iFloatRand(-200,200); //Set randomize x boundries
      location.y = 8; //Set y (not ranodomized!)
      location.z = iFloatRand(-200,200); //Set randomize z boundries
      iObjectLocationSet(OBJ_0,location); //Set location
   }
   iScriptStop(); //Stop script after one loop
}

Set the script object to not working at start. Link the script as first to the rigidbody sphere of the zombie. Make the script started when zombie health reaches zero.

Good luck with your game! You can PM me, I have some experince in the making of zombie shooters!  ;)
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
Pages: [1]