The Daily Click ::. Forums ::. Klik Coding Help ::. creating an object too many times in 1 condition?
 

Post Reply  Post Oekaki 
 

Posted By Message

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
6th August, 2011 at 23:23:17 -

-every 3 seconds
--number of zombie detector is less than 20
---zombie spawn point is on screen
----pick zombie spawn point
*create zombie detector and create zombie
**spread value ID in zombie and zombie detector

the other command that goes with this is..
-always
*spread value ID in zombie and zombie detector

aaand...
-always
*set position of zombie to zombie detector

the problem im having is when the zombies are spawned, it ALWAYS creates just 1 detector like its supposed to, but sometimes it makes 1 zombie, sometimes it make 2 3 or even 6
why is this happening? why cant i get it to only create 1 zombie?

 
[Game design makes my brain feel like its gonna explode.]

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
7th August, 2011 at 21:30:04 -

so i sort of fixed it i think? i set it to a fast loop, and on the loop it creates an object that plays the animation of the zombie coming up out of the ground, then when thats over it creates the detector and the zombie than destroys the object that plays the animation of it coming out of the ground. plus i set a limit of there can only be 10 zombies on field at one given time, this seems to work, but still... why was it doing that??

 
[Game design makes my brain feel like its gonna explode.]
   

Post Reply



 



Advertisement

Worth A Click