Hi,
I am trying to stop any character on the playing field from overlapping each other and have tried several methods to do so including the “Separate Objects” and the BOID Movement. Each of these sort of work, but only work when the characters have reached their destination (or with Separate it’s sort of hit and miss), when off the Path Finding function.
When they do hit their destination, they then all move away from each other, but not nicely as in they have massive movement from each other and then when they start moving again to the next point they simply overlap each other and so on.
I can’t seem to find a solution, that keeps the players x amount of pixels from each other when they are moving or when they have stopped. I know on a different gaming engine, if the object is classified as Solid then it sort of creates a boundary between each other. Does Gdevelop have something similar?
I have tried this
have tried this, which just results in characters moving fast away from each other and doing weird stuff (like flying off the screen) when stopped.
I have tried adding BoidsMovement to the characters, but that does not seem to achieve much either at least until they have stopped, then they tend to separate to different positions, which is good, but does not work whilst they are on a Path.
This is a screen shot of when they are first activated and walking towards point a. No bunching or overlapping and on a path to the point.
This is after a few points and there is still the same amount of characters, but all overlapping.
I have watched a few videos and also tried Groups, but with Groups you can’t really avoid the same group of characters, meaning that move char1 but keep char1 in position does not work and nothing seems to work when they are on a pathfinding mission.
I thought this might be quite a common problem for a lot of games, but cannot seem to find a solution.
Any help would be appreciated.
Thank you