Towerdefence: tower aiming first enemy in range

Get help using Construct 2

Post » Mon Jun 25, 2012 11:53 am

Hey,

I just started to learn C2 and I really like it.
I started making my own game. The game is a sort towerdefence game. but i got stuck on a certain part:
The aiming of the towers.

I want the tower to aim the first enemy who comes in range of the tower, and fire towards that enemy until it is out of range, after that I want the tower to pick the closest enemy in range and fire until that enemy is out of range etc.

How do i do this?
B
3
Posts: 5
Reputation: 635

Post » Mon Jun 25, 2012 12:12 pm

B
50
S
12
G
7
Posts: 259
Reputation: 10,371

Post » Wed Jun 27, 2012 7:48 pm

Thank you a lot!
Did you make this yourself?
B
3
Posts: 5
Reputation: 635

Post » Wed Sep 05, 2012 6:33 pm

[QUOTE=farsmile90] Hope this capx will help you:

http://dl.dropbox.com/u/52838248/turret.capx

And here http://dl.dropbox.com/u/52838248/homingMissiles.capx[/QUOTE]

Awsome! Did you make them? If you did, could you try to make a turret firing flame, like particles or something?

That would be awsome. And btw, awsome examples you posted.
B
11
S
3
G
2
Posts: 32
Reputation: 2,644

Post » Tue Oct 02, 2012 7:25 pm

Stereo,
It is possible to make a turret firing a flame, but you can't use partcales cause they can't collide with any other objects, so they can't "damage" enemies.
instead use small sprites and let them behave like particals with random speed, decreasing opacity and random start angle of movement.
B
3
Posts: 5
Reputation: 635


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Google [Bot], mnashwan, Rasputin, shinkan, stylie1, tarek2 and 13 guests