The Daily Click ::. Forums ::. Klik Coding Help ::. Waves that compare to a global value
 

Post Reply  Post Oekaki 
 

Posted By Message

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
5th March, 2010 at 00:51:36 -

So I want each wave of zombies to go up one spawn each wave. I tried to make the fast loop "Wave" run to Global Value A. But it doesn't work! Any suggestions?

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
5th March, 2010 at 00:56:52 -

Perhaps you could explain your code with a little more detail?

 

  		
  		

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
5th March, 2010 at 01:31:01 -

Yea sorry. So there are five spawn points that create a zombie once every 2 seconds. At the start of the frame I set the global value A to 1. The zombies are also in the enemies group. If the number of enemies=0 then run the loop "Wave" and in the how many times box I put Global Value A. I hope that was descriptive enough

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
5th March, 2010 at 03:15:42 -

Okay, sounds to me like it's the timer. One way might be to set a counter's Value A to Global Value A and the actual counter to some value (that you get by experimentation).

Counter > 0
>>subtract 1 from counter.

Counter = 0 and Counter Value A > 0
>>subtract 1 from Value A, spawn zombie and set counter back to some value.

Or some variation of that. Just try replacing the use of the timer.

 

  		
  		
   

Post Reply



 



Advertisement

Worth A Click