Fixed: I was doing pin at distance instead of pin to object
I need something more similar to the "Anchor" behavior, but instead of anchoring it to the viewport, it anchors it to an object, so that if the object its anchored to moves left, it will also move left.
I'm trying to create a sort of sandbox game, and O need to make it so that if a object is either overlapping or touching another object, it will be glued to that object. But if I do what you recommended, it'll be glued to exactly the middle of the object (or wherever the point is).
When I select pin at distance, instead of moving with the object, it sort of floats around in its vicinity.
How do I fix this?
I was able to get it to move by setting the speed to 200, but he doesn't go to the player
Develop games in your browser. Powerful, performant & highly capable.
I am trying to add pathfinding to my game but it does not work.
I have it set so that at the start of the layout it adds Sprite3 as obstacle (my blockade) and find path to Sprite.X, Sprite.Y (my player)
and so that every tick it will move along path.
Member since 23 Dec, 2020