How do I Save Turret target?

Get help using Construct 2

Post » Sun May 08, 2016 7:04 am

hi,

i want to use turret target for reason, can i save the target in variable or any way?

also can i save or use turret target X and Y ?
B
10
S
3
Posts: 180
Reputation: 1,212

Post » Sun May 08, 2016 3:44 pm

The answer is yes... however...

You can't do it from the turret behavior events and actions themselves that I have found.
The closest I have gotten to smart targeting specific objects (that aren't simply nearest or of sprite type) is by using the turret action to target specific "family".

You will have to "pick" your target using some other method and then store it and its x,y to a variable though. The turret behavior itself doesn't have the ability that I have found.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
71
S
19
G
8
Posts: 640
Reputation: 9,701

Post » Sun May 08, 2016 4:21 pm

thank's man,

i try for it.
B
10
S
3
Posts: 180
Reputation: 1,212

Post » Mon May 09, 2016 12:57 am

Using family I think you can get the UID of the object in the family... but I haven't tried.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
71
S
19
G
8
Posts: 640
Reputation: 9,701


Return to How do I....?

Who is online

Users browsing this forum: dop2000, kriand, matriax, NN81 and 7 guests