Pathfinding Problems

Get help using Construct 2

Post » Mon Apr 29, 2013 4:45 pm

I'm having problems with the pathfinding with my game Pablo Piranha. The idea is that you play as a piranha who fights over food with sharks. A fish will appear on the layout and when either you or a shark collide with the fish it will be destroyed and respawn somewhere else. The problem is that sharks seeking the fish stop when they get really close to it. How do I fix this problem? Thank you in advance!

https://dl.dropboxusercontent.com/u/125122795/Pablo%20Piranha.capx
B
18
S
5
G
4
Posts: 63
Reputation: 3,912

Post » Mon Apr 29, 2013 5:31 pm

Mino's image origin is not inside his bounding box. Your shark keeps going to Mino's origin, thus any overlapping of the bounding boxes becomes entirely coincidental. Go into Mino's animation and set the origin to center.TL222013-04-29 17:32:26
B
58
S
20
G
7
Posts: 305
Reputation: 8,804

Post » Mon Apr 29, 2013 6:39 pm

That did the trick. Thanks!
B
18
S
5
G
4
Posts: 63
Reputation: 3,912


Return to How do I....?

Who is online

Users browsing this forum: flemmig, Jarnopa, nimos100, semaso, Skebab and 10 guests