Results 1 to 2 of 2
  1. #1
    emo bob is offline Member
    Join Date
    Apr 2011
    Rep Power

    Default Tower Defense problems

    I am making a simple (the most advanced things I know are 'while' loops and basic recursion, and I've only got 2 weeks to do the project) tower defense for a computer science final project. I've got most of it down, but I'm having several problems which I would appreciate help with.
    1: how can I determine a range (max distance in a circle where the tower can pick a target to fire at) for my towers?
    2: how can I make the Projectile class fired by the towers track and move toward the target creep passed to it by the creating tower?
    3: how can I make the Projectile class detect when it is close enough to a creep to damage it and control itself?

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Washington, DC
    Rep Power


    Honestly, you're probably biting off more than you can chew. You've basically asked "how do I write this game?", which we can't really answer.
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

Similar Threads

  1. InputStream/Jar Problems/File IO Problems
    By rdjava in forum Advanced Java
    Replies: 31
    Last Post: 01-17-2011, 12:12 PM
  2. In defense of the Garbage Collector
    By Katanagas in forum Advanced Java
    Replies: 2
    Last Post: 10-25-2010, 06:40 PM
  3. RMI Problems
    By michaeln31 in forum New To Java
    Replies: 4
    Last Post: 10-23-2010, 12:52 PM
  4. Gui problems
    By bulldog in forum Advanced Java
    Replies: 1
    Last Post: 12-11-2009, 01:35 PM
  5. Few Problems Help!
    By elad_bj in forum New To Java
    Replies: 4
    Last Post: 04-07-2009, 03:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts