How do I check direction of pathfinder?

Get help using Construct 2

Post » Sun Jun 22, 2014 5:47 pm

How do I check the direction my pathfinding object is moving? I'm doing a beat em up, so I need this to set enemy's movement animations correctly whether the object is moving towards or away from player. The system currently picks random points within set distance, so there isn't a seperate "move towards" and "move away" system set in. Is it possible to check the pathfinder's momentum somehow or the destination's position after it's set?
B
22
S
7
G
4
Posts: 235
Reputation: 3,503

Post » Tue Jun 24, 2014 10:43 pm

i'm looking for the same info at the moment. I have sprites moving around a board when I click, but I need to somehow fetch their directions so I can have them walking in the correct direction.

I'll watch this thread for an answer too :)
B
6
S
1
Posts: 41
Reputation: 482

Post » Sun Jul 06, 2014 8:34 pm

Bump. For glory and justice.
B
22
S
7
G
4
Posts: 235
Reputation: 3,503

Post » Sun Jul 06, 2014 9:13 pm

Message: revvin can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Not sure if you are using the same plugins for movement, but I figured it out in my other thread:
https://www.scirra.com/forum/viewtopic.php?f=147&t=108948

Hope that's of some use?
B
6
S
1
Posts: 41
Reputation: 482


Return to How do I....?

Who is online

Users browsing this forum: max2612 and 6 guests