0 Favourites

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

  • hi guys, i need help to resolve this problem

    so i want to make MainChar going through the Object place(bullet), but the MainChar always stop at the point i click....(im already setting find path to object x,y)

    Thanks before...

  • Going to need more info than this..

  • Going to need more info than this..

    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...

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • I think this can be resolved by having the MainChar move to touch.x,touch.y. You can store this in global variable if you want. This should make it go to the initial destination of the Object yeah?

  • If the destination is inside an object that is solid, path will go the nearest available place on the obstacle grid outside that object.

  • I think this can be resolved by having the MainChar move to touch.x,touch.y. You can store this in global variable if you want. This should make it go to the initial destination of the Object yeah?

    i have already resolve the problem, randomly helped me, so the method is make some button(checkbox) and if checked, so every 0.5 sec Mainchar find path to object

    but thanks for your help too plinkie...and once again sorry about my grammar and vocabularies

  • I think he is trying to reach a point with pathfiding that has moved since he clicked?. (a bullet) So when the character reaches that place he wants to end up at the bullet's current position. Not where he clicked?

  • If the destination is inside an object that is solid, path will go the nearest available place on the obstacle grid outside that object.

    for that near condition, im already use Ashley logic, thanks for your suggestion 99Instances2Go....

  • I think he is trying to reach a point with pathfiding that has moved since he clicked?. (a bullet) So when the character reaches that place he wants to end up at the bullet's current position. Not where he clicked?

    you are right, already solved, thanks tunepunk

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
[BEHAVIOR] Chipmunk Physics
673 82,536
nelostic's avatar
nelostic
Unread hot topic
0 Favourites
[Behavior] LiteTween
672 169,958
manujorgo's avatar
manujorgo
Unread hot topic
564 105,252
rexrainbow's avatar
rexrainbow