How do I Tower Defense turret behaviour

Get help using Construct 2

Post » Wed Mar 04, 2015 8:20 pm

How to create such a behaviour for the bullets of the tower so they chase the target of the tower and dont just travel in a straight line ( like for example in warcraft tds) ?
B
3
Posts: 3
Reputation: 181

Post » Wed Mar 04, 2015 8:28 pm

Add Turret behavior for the bullets and set the target as whatever the bullet should chase. If you don't know how to use the Turret behavior, there's a tutorial for it in the C2 documentary.

You could also do it by storing the target's UID into a variable within the bullet and then change the bullet's direction every tic, but that's a bit complex to make. I'd recommend going with the turret method.
B
21
S
7
G
4
Posts: 233
Reputation: 3,474

Post » Wed Mar 04, 2015 8:40 pm

The turret behaviour bullets travel in a straight line , i want them to be homing on the target.
B
3
Posts: 3
Reputation: 181

Post » Wed Mar 04, 2015 8:41 pm

Also tried to tweak the tower defense example that is provided with construct and the result was the all bullets were chasing a single enemy.
B
3
Posts: 3
Reputation: 181

Post » Wed Mar 04, 2015 9:33 pm

Homing bullet : every tick set angle toward target.x, target.y
B
6
Posts: 44
Reputation: 338

Post » Wed Mar 04, 2015 9:46 pm

Hope this helps :)
You do not have the required permissions to view the files attached to this post.
B
6
Posts: 44
Reputation: 338


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests