[SUGGESTION] Turret Behavior

Discussion and feedback on Construct 2

Post » Mon Feb 11, 2013 6:40 pm

There are two things I find that I would like to have in the turret behavior:

1) A way to get the UID for the currently targeted object. The reason for this is that I have a Turret that fires a bullet that causes an effect that lasts for a while and I would like turrets of that type to not target an enemy that has the effect on it already. (E.G. - A slow effect for the enemy)

2) Along with First and and Nearest for Target mode it would be nice to have a way of prioritizing what target is selected: Strongest, Last, Fastest, etc... If I had suggestion number 1 (above) I could code suggestion number 2.

Side question: Will there be some manual entries for the Turret and Pathfinding behaviors soon?
B
13
S
4
G
3
Posts: 75
Reputation: 3,425

Post » Mon Feb 11, 2013 7:58 pm

Doesn't the existing TargetUID expression do what you need?

For 2), if you unacquire target then use the acquire target action and pick an object within range, it should switch to targeting that object instead.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Mon Feb 11, 2013 8:11 pm

[QUOTE=Ashley] Doesn't the existing TargetUID expression do what you need?

For 2), if you unacquire target then use the acquire target action and pick an object within range, it should switch to targeting that object instead.[/QUOTE]

GRRRRRR....

Now I feel foolish. I even saw that TargetUID last night but it did not register in my tired brain.

Thanks AshleyRangerJim2013-02-11 21:01:57
B
13
S
4
G
3
Posts: 75
Reputation: 3,425

Post » Mon Feb 11, 2013 8:13 pm

1_ There's already a TargetUID expression available for the behavior.
A way of doing would be : example

Side question:
New features from the beta gets added to the manual in the next stable version.
According to the Ashley's release cycle, it should be available in r120 in a few weeks.

Though, templates and examples are already added/shipped with the current beta release.

I hope that helps.

Edit: Over ninja'd. Well, examples are always good I guess.Kyatric2013-02-11 20:14:27
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests