How do I Use Path Finding

Get help using Construct 2

Post » Wed May 28, 2014 8:34 am

Hey there,
I am trying recreate an arcade style game like Galaga. Where the enemies come down the screen on a set path, do a few turns and twists, line up on the side of the screen and then eventually fly off.

I started looking at Path Finding but I am not sure how to input the pathing information. Am I handling this type of AI correctly by using Path Finding? Or is there a smarter way to do this? Thank You.
B
56
S
15
G
13
Posts: 826
Reputation: 17,705

Post » Wed May 28, 2014 10:37 am

Hi

Path finding isn't the right tool for such a thing. Pathfinding as it name states is able to move an object to a destination by avoiding obstacles in between.

All you have to do is to store the pattern of the object that you are trying to move as a set of coordinates.
Cyberphaze

What we build can never be destroyed
B
136
S
18
G
6
Posts: 37
Reputation: 14,805

Post » Wed May 28, 2014 1:36 pm

I wouldn't call it an AI, it's just movement on a predefined pattern

The way they did it back in the days would be via interpolating on predefined 2D points stored in a lookup table (Interpolating was really expensive, so they probably just store every pixel to move to in the pattern)
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,481

Post » Thu May 29, 2014 9:26 am

AbelaNET wrote:All you have to do is to store the pattern of the object that you are trying to move as a set of coordinates.

@AbelaNET
I'm sorry, but how do I do that?
B
56
S
15
G
13
Posts: 826
Reputation: 17,705

Post » Thu May 29, 2014 9:33 am

I am sorry who done this demo but this how path find is done credit goes to that person and not me Lord Shiva
You do not have the required permissions to view the files attached to this post.
B
257
S
43
G
15
Posts: 1,992
Reputation: 41,535


Return to How do I....?

Who is online

Users browsing this forum: pegasus6464 and 28 guests