Skip to main content

Questions tagged [tower-defense]

This is a style of game that sets the player in the role of protector of an area or structure. The idea being to survive against a series of increasingly powerful invaders.

Filter by
Sorted by
Tagged with
0 votes
3 answers
517 views

How to prevent the player from completely blocking the enemy paths in a tower defence game like Fieldrunners?

I am new to Unity and want to create a tower defence game like Fieldrunners. I need help to create the grid placement area for the towers so that there is always a path for enemies to travel. I mean ...
Robin's user avatar
  • 3
0 votes
2 answers
551 views

Defining path for tower defense game

I'm currently developing a tower defense game as a part of a group project in school. This game will be programmed in C++ using SFML. We are having trouble with finding a good way to define the path ...
user294957's user avatar
2 votes
1 answer
2k views

Efficient way to check collisions for many objects

I am making a Bloons tower defense game and I came across a problem with regards to collisions. The way my code currently works is all the current bullets on the screen(could be potentially thousand) ...
Aayush's user avatar
  • 57
1 vote
1 answer
134 views

Model path of bullet to hit future position of balloon

I am coding a Bloons Tower Defense Game and one of the problems I have is how to shoot a projectile from a tower and have it hit a balloon that is moving along a certain path. The way I am currently ...
Aayush's user avatar
  • 57
4 votes
1 answer
4k views

Creating random path in grid

I need to find a path with required length in the NxN matrix without loops and deadlocks. For example: We Have a grid 7x7 (49 blocks in total) with START (orange) point. We need to build random ...
Артем Носов's user avatar
2 votes
1 answer
575 views

Prevent navmesh blocking

I'm writing a tower defense game in Unity, inspired by Desktop Tower Defense. Creeps spawn on one side of the screen, and if they make it to the opposite side, the player takes damage. The board ...
error's user avatar
  • 151
1 vote
1 answer
570 views

Is this a suitable "pathfinding" algorithm for a tower defense game?

Note: I put "pathfinding" in quotes because I'm not sure if it's the proper term for this. My goal is to create a 2D tower defense game with HTML5/JavaScript. It's mostly for learning purposes, so I'...
Andii's user avatar
  • 121
1 vote
2 answers
806 views

How to optimize collision detection in a lane-defense game?

Somebody told me that don't use the physical collision detection(don't use Collider,Rigidbody,Raycasting) because performance loss.instead of it use the mathematical way for collision detection. ...
Seyed Morteza Kamali's user avatar
1 vote
0 answers
173 views

Enemy awareness for Tower Defense [closed]

1I have a thesis project about dynamic difficulty in games and I'm focusing on Tower Defense genre. My plan let the enemy units or each units in a wave know that a tile on a path is dangerous (or many ...
MazoKisto's user avatar
0 votes
1 answer
113 views

Online Tower Defense : Problem in protecting user's data [closed]

Sorry about the question heading I am creating an online tower defense game with SQL Server 2008 as my database. SQL user used to send data to server is restricted to only execute existing ...
Developer Nation's user avatar
31 votes
8 answers
13k views

How can a game handle all characters at once?

This question is just to gain knowledge about how a game can handle so many characters at once. I am new to gaming so I beg your pardon in advance. Example I am creating a tower defense game in ...
Developer Nation's user avatar
5 votes
2 answers
5k views

Forward A-star pathfinding vs Reverse A-star pathfinding

Under what condition does doing Forward path finding or Reverse pathfinding get better result? Most tutorials for open grid tower defence games says to pathfind from the Goal to the monster. Why is it ...
DarkDestry's user avatar
  • 1,441
1 vote
1 answer
478 views

Upgrade system for tower defence?

What is the best way to create a rather dynamic upgrade system for a tower defence game? I thought of two possibilities: Create enums for stats and math operation (latter could be just a char as well)...
WalrusNine's user avatar
0 votes
1 answer
381 views

How to sync towers and enemies in Tower Defense?

I'm going to build a tower defense (like) game. In a heavy tower defense, it takes time to processing. So, if i set a time interval, it costs interval+processing time so it's not fair. If i make a ...
Tatsuyuki Ishi's user avatar
4 votes
4 answers
6k views

How can I procedurally generate the right difficulty of enemy waves? [closed]

I'm programming a space-shooter mobile game with a sandbox gameplay style similar to Defender's. The player faces infinite waves of enemies moving towards his ship. The game has many upgrades the ...
glampert's user avatar
  • 3,067
-2 votes
2 answers
2k views

Tower Defense Search Enemies Efficiently

I had a problem with the build of a TD. I got a slow - non efficient search for towers find targets to shoot. PD: enemies[] got all the active & non-active enemies (death and alive) ->Im using ...
OsbSoto's user avatar
1 vote
2 answers
6k views

C++ OOP Implementation of a game [closed]

I've been recently trying to get into Object Oriented Programming by porting a game I've made in C to C++. The problem is, even though my implementation works, I don't know if is the best approach. ...
ememorais's user avatar
  • 123
-1 votes
1 answer
1k views

how to predict enemy postion to shoot bullet same kingdom rush

i'm doing a tower defense game same kingdom rush, enemy can run curve not only linearly. i found this link : 2D tower defense - A bullet to an enemy but this link use only for enemy run linearly. ...
user919496's user avatar
3 votes
3 answers
6k views

Map building - Tower Defense

Before diving too deep into my question, let it be known that I am learning as far as java script goes and figured a simple Tower Defense game would be an excellent way to learn things. So I have ...
Dan K's user avatar
  • 131
2 votes
2 answers
418 views

About making damage between units

I am making my own Tower Defence game engine. I havent built one before and I don't know lot of stuff how games work. I will take Starcraft as an example. You have a marine shooting a zergling from ...
Vlad's user avatar
  • 199
3 votes
1 answer
4k views

Aim prediction along a parabola - How to make a Tower Defence Mortar aim accurately

I am building a very basic tower defence game in Unity3D where one tower is your standard long range mortar/artillery. I want the projectile it fires to follow a parabola curve to make its movement ...
Tom 'Blue' Piddock's user avatar
-3 votes
2 answers
2k views

Can I develop 2D tower defense game with unit3D in C# for Android? [closed]

I tried to find the answer in unity3d site but without success. If the answer to my question is yes, does anyone know where I can find an example?
theateist's user avatar
  • 107
1 vote
3 answers
4k views

What are the most common AI systems implemented in Tower Defense Games

I'm currently in the middle of researching on the various types of AI techniques used in tower defense type games. If someone could be help me in understanding the different types of techniques and ...
BOWS's user avatar
  • 133
1 vote
2 answers
2k views

How to implement a birds eye view of 2D Grid Map using Android

I'm a true beginner with using the android platform and I'm having difficulties on implementing a 2D grid system for a tower defense type game. Where I can place towers on a specific tile and enemies ...
BOWS's user avatar
  • 133
5 votes
2 answers
1k views

In a Tower defense game, how to do buffs/debuffs

The question is at the very bottom. If you understand Buffs/Debuffs in tower defense games then you should skip the bulk of this question and go to the bottom (seperated with the long line) I plan on ...
Gabriel's user avatar
  • 399
1 vote
2 answers
2k views

2D Tower Targeting (Tower Defense)

so just to be more specific this question isn't in regards to how to target enemies or anything like that rather its purposed towards a specific targeting issue i have with me enemies in its current ...
dan369's user avatar
  • 983
1 vote
1 answer
1k views

What algorithms can I use for bullet movement toward the enemy?

I'm developing 2D strategy game. There are weapons that shoot at enemies. From what I've read in this, this, this and this post I think that I need linear algebra, but I don't really understand what ...
theateist's user avatar
  • 107
0 votes
2 answers
6k views

I need an enemy spawning algorithm for a 2D tower defense

I need an enemies spawning algorithm for a 2D tower defense game. I have 4 maps, each has 4 stages and each stage has 40 rounds. I need to create an algorithm which will instantiate waves, increase ...
Syed 's user avatar
  • 959
8 votes
5 answers
12k views

What is the logic behind the 'Loading' scenes in games?

I'm making my first game, it's a tower defense type of game, using Unity game engine and taking Fieldrunners as a reference. I would like to know more about the functionality behind 'Loading' scenes ...
Syed 's user avatar
  • 959
27 votes
4 answers
30k views

How do you save game state?

What is the procedure followed by game programmers for saving and resuming game state? like files/mappings. I want to save it for tower defense game and I am using unity3D game engine.
Syed 's user avatar
  • 959
16 votes
3 answers
9k views

How can I implement a "fast-forward" feature in my game?

How can I implement the fast forward feature for my tower defense game like in http://fieldrunners.com/ and other TD games? I am using Unity 3D. Would there be something to manage fewer frames per ...
Syed 's user avatar
  • 959
2 votes
3 answers
5k views

How can I specify which enemies to spawn for each round in a tower defense?

I am making a TD game in Unity, and I would like to know the most common approach to spawning enemies each round. I have more than 200 rounds per map, just like Fieldrunners. Is it some kind of ...
Syed 's user avatar
  • 959
2 votes
4 answers
2k views

How can a single script attached to multiple enemies provide separate behavior for each enemy?

I am making a TD game and now stucked at multiple enemies using same script. All is well with scripts attached with one enemy only. Problem is in running multiple enemies. Here is the overview. I ...
Syed 's user avatar
  • 959
1 vote
1 answer
2k views

How can we view 3d objects from top down view in TD game

I am making a tower defense game. I am working in x and y axis only. I have made a grid, snapped towers and made a pathfinding algo to run enemy. Initially I have worked with cubes and spheres in ...
Syed 's user avatar
  • 959
-2 votes
2 answers
490 views

How to attach turrets to tiles in a tile based game

I am a flash developer, and I am building a Tower Defense game. The world is being built through tiles, and I have gotten that accomplished easily. I have also gotten level changes and enemy ...
Joseph St. Pierre's user avatar
4 votes
2 answers
2k views

Which pathfinding algorithm should I use for multiple enemies and tower placement?

I am new to game development and I am developing my first "Tower Defense"-type game. I need a pathfinding algorithm to place my towers and to move enemies. For tower placement case: I want the ...
Syed 's user avatar
  • 959
7 votes
5 answers
3k views

How to make sure there's always a walkable path for enemies in a tower-defense game?

I am making a 2D tower defense game. So far I have a 2d array which acts as a grid for my game. I'm able to place towers on it, run enemies and some dragging and tower firing stuff. Now I am facing a ...
Syed 's user avatar
  • 959
1 vote
1 answer
1k views

How to drag my dragging object in 'game'-unity?

I have made a dragging sphere which drags, problem is how can I drag it using keyboard keys , I dont want to build it again on iphone simulator after experimenting with my code. for dragging it is not ...
Syed 's user avatar
  • 959
3 votes
2 answers
3k views

How can I make grid tiles/plane transparent

I have made a grid using multiple planes. Now I want to place a image on this grid so that user cant see the grid I have made and I ll have access of all points of the image using grid. The problem ...
Syed 's user avatar
  • 959
4 votes
1 answer
15k views

What is grid in Unity and how can I implement it?

I'm a beginner. I need to place a grid on my map in Unity and would like to access it to place a simple object on mouse click. How can I achieve this ? I am unable to understand the grid ...
Syed 's user avatar
  • 959
8 votes
3 answers
11k views

How do I make objects move along a path?

I'm trying to get something like the below image. As you can see, there's a highway and inside of it, there'll be some objects moving (millisecond). I guess the street behavior is like a pipeline. ...
oscar.fimbres's user avatar
14 votes
4 answers
8k views

2D tower defense - A bullet to an enemy

I'm trying to find a good solution for a bullet to hit the enemy. The game is 2D tower defense, the tower is supposed to shoot a bullet and hit the enemy guaranteed. I tried this solution - http://...
Tashu's user avatar
  • 291
7 votes
2 answers
918 views

How should one handle positions in a tile-based world?

I have a simple Tower Defense game using a tiled world. Creep and towers are on a tile at all times. How should I represent the position of creeps in code? (Do creeps know their current tile and ...
anthonyvd's user avatar
  • 1,350
0 votes
1 answer
231 views

Choppy enemy movement

I had a question about How to calculate the enemy to arrive in the middle of cell. How to calculate the enemy to arrive in the middle of cell? The posters pointed out that the direction of the ...
Tashu's user avatar
  • 291
0 votes
2 answers
256 views

How to calculate the enemy to arrive in the middle of cell?

The game is 2d, and the genre of this game is tower defense. I managed to get it moving to the cell and arrived in the cell. But it never arrives at the middle of a cell. Here's what I did... <...
Tashu's user avatar
  • 291
4 votes
5 answers
722 views

Flash Game not working on Android

I am not sure if I will be able to provide enough information for someone to answer this question, but any ideas might help. I am creating a tower defense game in Flash and I eventually want to make ...
Sean's user avatar
  • 267
3 votes
1 answer
834 views

Flash AS3 Tower Defense MouseEvents

In my tower defense game and every tile has its own mouse event listener. I am wondering, would it be better to use one event listener (MouseEvent.CLICK) and then when it runs the function, should I ...
Sean's user avatar
  • 267
3 votes
2 answers
689 views

Slow Tower for a Tower Defense Game

I am making a tower defense game in Flash and I have a slow tower that is built directly on the path. I have it setup to use a hitTestObject function. The tower is in its own class and the enemies ...
Sean's user avatar
  • 267
8 votes
3 answers
2k views

Pathfinding with multiple random paths in a Tower Defense game

I thought about random pathfinding for my Tower Defense game. A* would not work for my puposes, because I specifically need random pathfinding. Imagine a map with routes, a starting point and a ...
Marco's user avatar
  • 1,058
8 votes
3 answers
1k views

Effective methods to continuously update movement in a tower defense game?

We are four guys making a Tower Defense game as a project in first grade on a university. The game is going to be really simple! Three different towers Three different monsters One map (maybe add ...
Øyvind 's user avatar