Goofballgames.com - Play online games now

Here is a great site I found to play great online games now – I know they are asking for submissions for games to be featured on the site, so send me some of your concepts and I’ll see what strings I can pull…

Please stop by and let me know what you like and don’t like!

Go to goofballgames.com now!

Click here for a other articles in the article section.

Posted on May 3, 07:18 PM by Walter Reid

Hello:

I am an illustrator who is interested in modifying your tower defense code. I was wondering if I may have your email, so that I can ask you a few specific questions about using obtaining your permission to modify this code, as well as some general questions about adding some more functionality to the game.

Thank you very much.

Quentin | May 21, 09:56 PM | #

hey i was messing witht he towerdefense and for some reason i cant create a reset button. I was wondering if you could do a post on a reset button for it. the reason is because most of ur variables say ”_root.” so when i creaet a reset buttin that resets the variables it doesnt affect them. maby you can figure it out and help me with it

Thx
Robert

Robert | May 24, 01:28 AM | #

Hi Walter,

Terrific tutorial – congratulations on putting together such a comprehensive game so clearly and so generously. I’m new to AS, so it’s been really useful as a learning tool too. One thing I’ve struggled with is in smoothing the tracking of the turrets to the creeps. I’ve tried something like the following, but it isn’t very useful – the turret doesn’t catch up with the creep to fire… Any thoughts would be very welcome.

Cheers.
rotateTo = Math.atan2(creep._y – this._y, creep._x – this._x) * 180 /Math.PI;
amtOfTime = 3;
onEnterFrame = function() {
if (rotateTo > 0) {
_rotation += (rotateTo – this._rotation)/amtOfTime;
}
else
{
_rotation -= (rotateTo + this._rotation)/amtOfTime;
}
rotateTo = Math.atan2(creep._y – this._y, creep._x – this._x) * 180 /Math.PI;
//closeEnough = rotateTo * rotateTo;
}

_rotation = Math.atan2(creep._y – this._y, creep._x – this._x) * 180 / Math.PI;
fire(from, to, speed, acc, maxspeed, projectile, level, damage, splash, slow, poison)
if (closeEnough < 100){
_root.fire(this, creep, 10, 1, 10, “projectile_cannonball”, this.level, damage, splash, slow);

Blip | May 24, 06:13 AM | #

duudee, i know this doesn’t belong HERE, but i didn’t know where to say this. You are a GENIOUS. you figured a code i was working my a** off to figure. thanks a lot

luke | May 29, 04:26 PM | #

‘hey i was messing witht he towerdefense and for some reason i cant create a reset button’

Thx
Robert

ANSWER THIS QUESTION…. IM HAVING THE SAME PROBLEM!!!!

Zac | Jul 19, 12:30 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.