TD game help.

Discussion and feedback on Construct 2

Post » Wed Jul 27, 2011 6:00 pm

Okay Im trying to make a TD game and so far i have a tower that aims at a target and fires. But when i add more targets it will only try to attack the oldest one. So when it goes out of range the tower will cease working cause its trying to target the last one rather than closest. Any helpful hints?
B
2
G
1
Posts: 3
Reputation: 456

Post » Wed Jul 27, 2011 6:05 pm

I guess u need to up the capx, but my first idea is to put the targets in a loop, like every 2 sec. then u check the closest target again.
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Wed Jul 27, 2011 6:07 pm

Nested loops ! You need to scan every target for every tower.
B
46
S
17
G
18
Posts: 845
Reputation: 13,798

Post » Wed Jul 27, 2011 6:19 pm

Okay I suppose I'm a little behind in knowledge. These loops, how would I start or set it up. I believe I can get it with a small start.
B
2
G
1
Posts: 3
Reputation: 456

Post » Wed Jul 27, 2011 6:31 pm

Did u make the Beginners Tutorial? I think it is more than essential for newbies in c2.
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Wed Jul 27, 2011 6:34 pm

Nevermind, the word loop was enough to help a lot. Also I seen the tutorial and ran through it quickly, though it was a challenge since I only have my phone for net.
B
2
G
1
Posts: 3
Reputation: 456


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests