Turet targeting

For questions about using Classic.

Post » Sat Nov 29, 2008 2:01 am

is there any way to get the x and y of a turrets target?
B
6
S
2
G
5
Posts: 249
Reputation: 2,323

Post » Sat Nov 29, 2008 3:05 am

You could do something like this:

+If Target is in line of sight of Turret
-Set Turret('target') to Target.UID

+If Target.UID is equal to Turret('target')
-X = Target.X
-Y = Target.Y

Not sure if that makes any sense, but it's an easy way of picking the right objects X and Y values if you understand it.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests