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!
dl.dropboxusercontent.com/u/125122795/Pablo%20Piranha.capx
Develop games in your browser. Powerful, performant & highly capable.
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.
That did the trick. Thanks!