Wanting to verify...
The origin point of any tilemap object instance is in the top-left corner, correct?
If so, let's say I want to pin-point the center of the instance which is 10x10 pixels... I would simply say:
Tilemap.X+5
Tilemap.Y+5
...yes?
Develop games in your browser. Powerful, performant & highly capable.
I would say so, yes.
I've just encountered this yesterday, i use the "Tilemap.x+Tilemap.width/2" so things don't break if i change size of the tilemap.
mindfaQ & JohnnySheffield - Thanks! And that x/2 is even better.
Now for the bigger question. With Pathfinding, does the condition of "On Path Found" become true when the object doing the behavior collides with the point being sought? Because what I WANT is for the Object.X/.Y values to equal the actual X/Y destination. But it always seems to stop short.
Its short because of the cell offset.
newt - THANKS! Got it working! In fact, I FINALLY have a viable patrol system that works better than any of my previous incarnations!