Array problem in TD

BlackRabbit

New Member
Reaction score
3
Was just curious if arrays were in the WE like they are in Java and MUST be started at 0 instead of 1. I'm sure everyone here gets sick of Tower Defense questions, but I'm having some difficulties with the one I put together tonight and I'm almost positive it's with the array.

I had an array for 10 different waves of creeps, and it would send perfectly after a timer would drop. Only problem, is that it would be stuck on the first wave [taken from the array as arrayname[0] It would never move on from there. So I'm not sure if it's my other triggers or the array. Posting the map for ideas if anyone has any.
 

Attachments

  • [2] Bull's Head.w3x
    22.4 KB · Views: 67

DrEvil

FCRI Associate!
Reaction score
111
So you have the right idea about making a TD
but you had a few problems:

spawning creeplevel[0] which couldn't spawn anything as you set creeplevel[1 through 10]
when the creeps died you updated the creeps dead and not the kills
chicken didnt have a food value so dark green always had 0 food used
and a few other minor problems

I changed these problems :)
and it works good now, ( well I only tested the first level... but that works and spawns the next level so should work all properly :) )

yoou should also read this tutorial on how to make a TD Andrew Gosu TD Guide
 

Attachments

  • [2] Bull's Head.w3x
    22.9 KB · Views: 102

BlackRabbit

New Member
Reaction score
3
Thanks man. I just dl'd your fix and will compare what I did wrong. Not a bad start for 4 hours, eh?

Thanks for the help again.

Edit: Your fix works great as far as spawning levels! +rep
The only problem is this: The creeps part of the multiboard leaks a bit. End of lvl three and the multiboard still showed 6 creeps on the field. Any ideas?

Edit: Nevermind. Figured out the multiboard! Thank you for your help!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top