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?
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.
Nested loops ! You need to scan every target for every tower.
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.
Develop games in your browser. Powerful, performant & highly capable.
Did u make the Beginners Tutorial? I think it is more than essential for newbies in c2.
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.