How do I Follow the Object (Bullet)with Pathfinding Behavior

Just started using Construct 2? Post your questions here

Post » Tue Oct 18, 2016 8:55 am

hi guys, i need some help, to resolve some problem

so, i make a games with touch and pathfinding behavior
and the i want to MainChar go to the object when we click the Object
but if the Object has Bullet behavior, the MainChar not follow the object but only follow the first place i click the Object, so the MainChar and Object not meet...

Thanks before......and sorry about my grammar and vocabularies...
B
20
S
7
Posts: 15
Reputation: 1,332

Post » Tue Oct 18, 2016 12:25 pm

You probably have set the pathfinding behaviour to go to the point where the touch was, right?

This only works for non-moving objects.
To follow a moving object, you need to update the pathfinding every second or so. (depends on your liking how regularly it gets updated. The more often the more ressource intensive the program will be)

I created a .capx for you, have a look: https://www.dropbox.com/s/xrh10x5z7mmbnwy/FollowBullet.capx?dl=1
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Wed Oct 19, 2016 1:58 am

randomly wrote:You probably have set the pathfinding behaviour to go to the point where the touch was, right?

This only works for non-moving objects.
To follow a moving object, you need to update the pathfinding every second or so. (depends on your liking how regularly it gets updated. The more often the more ressource intensive the program will be)

I created a .capx for you, have a look: https://www.dropbox.com/s/xrh10x5z7mmbnwy/FollowBullet.capx?dl=1


Really thanks randomly, well done, thanks for helping me. finally i get it, i will try to implement with touch now....once again thanks randomly
B
20
S
7
Posts: 15
Reputation: 1,332


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests