One more part to the tutorial

I’ve decided that I’m going to add at least one more part to the tower defense tutorial – I’ll handle “flying” enemies. It’s straight froward enough, but once again it’ll be easier for some people to see an example written out.

I should have it up soon, you’ll be surprised how easy it is – I’ll even throw in a new tower type that only hits air enemies… then I’ll possibly pick another game to cover. Hopefully it will be as successful as this series was.

Again let me know your suggestions of what you want me to cover in the comments section or contact me directly through this site.

Click here for a other articles in the article section.

Posted on Feb 28, 07:47 AM by Walter Reid

Hello again, so i was playing your latest tutorial #10 and i noticed a glitch:

When you fully upgrade a tower it no longer shows what its stats are if you select another tower.

So if there is any way possible could you fix that also in your next tutorial?

Clay | Mar 1, 04:58 PM | #

Sounds great!
What about deleting towers and/or seeing the changes in stats reflected in the look of the tower/range ring?

E | Mar 2, 04:35 PM | #

hey mate, this tutorial is amazin but cud u tel me which code i change to set the wave amount larger than 35. thanks

Zac Steele | Mar 5, 11:14 AM | #

Hi Clay: I need to fix that – I think I know where that bug is, but I just haven’t had time to solve it. Anyone want extra credit by fixing it :)

E: Selling towers is a must – I was expecting to do another part on it, but no one was clamoring for it, but any good tower defense tutorial needs this

Zac: To add additional waved just tack on new rows to the bottom of the waves array –

// Params = Number, Health, Speed, Time between releases, Gold per creep);
_root.waves = [[10, 50, 2.500000E+000, 2000, 2], [10, 100, 3.500000E+000, 4000, 2], [10, 150, 2.500000E+000, 200, 2], (Add each new row here), (etc), (etc); Walter Reid | Mar 6, 01:15 PM | #

hey i was working on the tut i have it up to 48 levels but thiers one issue with the code
it only lets u complete level 47 then it says you win
i tried making it more and less levels but you cand ever get the last level you win before the lae level

Robert | Apr 4, 05:20 AM | #

Hey Walter, I also wanted to ask, how do you reset the game, I’m having trouble resetting it. Thanks.

Jorge | Jun 17, 09:32 AM | #

Add Your Comment

You may use textile in your comment.

How To Build a Tower Defense Flash Game – Part 10 Win or Lose

Posted on Feb 20, 08:41 PM by Walter Reid

Ok, so based on the comments I realized that not having a “win” or “lose” condition at this point was not working. Well, fear not my friends, I have fixed the situation and now you can lose or win depending on how you play the game now. Yay!

Here is the latest tower defense game that you can now build…





How To Build a Tower Defence Flash Game – Part 9 Scores and Wave Timeline

Posted on Feb 18, 09:05 PM by Walter Reid

Welcome to another installment of my tower defense series – Part 9. I know you’ve been asking for more and I’ve done my best to get creative. I’ve already built out the next few Parts the only thing I need to do now is explain it all, but for now without any more delay – This lesson we will be covering the following subjects…

How to build a tower defense flash game (Part 8 - Poison Tower and Basic Startup)

Posted on Jan 21, 08:30 PM by Walter Reid

We are now at Part 8! You should be pretty up on your tower defense games at this point in the series. However, before we begin you should make sure you have reviewed the previous tutorials if you came here directly from a link.

How to build a tower defense flash game (Part 7 - Money and Upgrades!)

Posted on Jan 10, 03:26 PM by Walter Reid

You can’t get something for nothing. That’s what my family always said, so why should tower defense games be any different. You need to make people work for it. That means you need to pay your towers for hire and the better the towers, the more they should cost. Don’t worry we won’t make anything too expensive, but keep in mind that this is “level balancing” and it is a hugely important step…

How to build a tower defense flash game (Part 6 - Tower Powers!)

Posted on Dec 18, 10:28 PM by Walter Reid

Wow, the last article was intense – How can I possibly beat that? Oh, I think I can come up with an idea, um, how about tower powers?! You know that thing that makes the towers placed unique. Well I could think of a few powers that can be combined to make virtually all tower types – but then i realized something so complete would take a lot of writing to explain. So here are the intermediate level tower powers!

How to build a tower defense flash game (Part 5 - Wave after Wave of Creep Kill'in)

Posted on Dec 17, 12:00 PM by Walter Reid

Each creep has an increasing number of hit points after each wave, starting at 40 and going up to the final boss on wave 6 at 6000. Don’t worry I didn’t limit you with the burden of money yet, so you should have no problems. Just place as many towers as you need to get the job done!

How to build a tower defense flash game (Part 4 - Starting the tower attack)

Posted on Dec 15, 01:41 PM by Walter Reid

Today we are going to charge right into the newest section in the series – “Starting the tower attack!” This is one of the most important components in a tower defense game and will ultimately be one of the most enjoyable to program. I will definitely not get to all the cooler aspects of attacking towers in this one section, but I promise that we will create all sorts of fun towers soon. You will however, at the end of this particular tutorial, have enough knowledge to make any cool towers you can think of.

How to build a tower defense flash game (Part 3 - Rotation and Realism)

Posted on Dec 11, 07:31 AM by Walter Reid

Welcome to part 3 of the tower defense series – Today we are going to be delving into the fine art of realism. Nothing ruins the immersion of games like something that doesn’t make sense in the real world (unless that’s what your game is completely about. Since most tower defense games are rooted in the real world, we ned to make sure that the items in the game act like real object.

How to build a tower defense flash game (Part 2 - Placing Towers)

Posted on Dec 8, 11:12 PM by Walter Reid

Welcome to part 2 of the tower defense series – Today we’re going to be adding code to place towers. Whoa, slow down there you say – “place towers? That’s crazy talk”. I assure you it isn’t and once you are able to place towers in the next section we will combine our lessons together to have a single level of play!

How to build a tower defense flash game (Part 1 - Waypoints and Enemies)

Posted on Dec 6, 11:44 AM by Walter Reid

I am going to going to show you how to have a basic enemy follow a predefined path, by following a series of waypoints. By the end of this series, you will have all the information to be well on your way to making the next great tower defense game.