Zombie melee

Type: Enemy brain
Level: 3 star
Pages: 1
Description: Designed for the Zombie characters. When they kill the dead character is replaced with a zombie female. Warning: You need to add kode to your player to prevent your game just stopping if your player is killed by the zombie. The female zombie that is created is a NPC and you do not have controls any more.


  1. WHEN [once] DO [team][equals][team 3]

    Attacking kode
  2. WHEN [enemies][nearest object][or][player][neutrals][nearest object] DO [objvar:my enemy][equals][it]
  3. WHEN [distance to][objvar:my enemy][less than][20][and][distance to][objvar:my enemy][greater than or equal to][2]
  4. …WHEN DO [move][at speed][0.25][toward][objvar:my enemy]
  5. WHEN [countdown timer][numvar:pause attack][loop]
  6. …WHEN [distance to][objvar:my enemy][less than or equal to][2] DO [attack][light][objvar:my enemy][with windup][end combo]
  7. …WHEN DO [numvar:pause attack][equals][random number][1][to][2]

    Zombie creation
  8. WHEN [for each of][killed objects]
  9. …WHEN DO [it][destroy after death][equals][false]
  10. WHEN [countdown timer][2]
  11. …WHEN DO [play fx][fx: Grave burst][at position][it][position]
  12. …WHEN [countdown timer][0.5] DO [create][Zombie female][at position][it][position]
  13. …/… DO [destroy][it]



No zombie creation
remove lines 8-13



Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: