0
Answered

Move Toward Focus Target?

Navarro Family 4 months ago in Melee updated by Marti (Lead Developer) 4 months ago 1

My apologies if this is more of an Idea, than a question.


I'm needing to use the Focus Target's position (When player is focusing on the target) and move my Player towards target, when I trigger the action.  Is there any way to do this currently?

 On the MoveCharacter action, it would be great to have "FocusTarget" as one of the options with "Position,Transform etc."

Or just be able to have the FocusTarget's GameObject as a Local or Global Variable to drag into Actions.


Thanks again!

Unity version:
Game Creator version:
+1
Answered

Unfortunately, the list provided in the dropdown menu is fixed and can't be altered per-action basis. However, the Move Character action will actually move the character forward towards its destination. When you get the focused target, you can store it in a Local Variable and use this value as the target destination of the Move Character action (and set an appropriate stop threshold, like 1.5 or so).