TheGameCreators / AGK-Studio

3 stars 1 forks source link

[Request] [Engine] [IDE] 2D Path editor and Pathfinding #344

Open ddabrahim opened 5 years ago

ddabrahim commented 5 years ago

Description: I think it would be useful to have a 2D path editor built-in to the scene editor so we could design paths and make sprites/objects move on this path to the end, back and forth or random. Something similar to what we have in FPSC and GameGuru.

It would be also nice to have some sort of 2D A* Pathfinding implemented in the engine to allow us to move a sprite from point A to point B at the given speed while they are avoiding obstacles.

More advanced option to be able to set cost of obstacles. It means the path can move through the obstacle but it is going to slow the movement down and the pathfinding going to prefer the obstacle with the lower cost. For example we could set the mud to be cost of 3, water to be cost of 2 and a log over the river to be cost 1 and a bridge over the river cost 0. So the pathfinding would prefer to use in order 0:bridge, 1:log, 2:water, 3:mud. So we could choose if an obstacle have a cost or solid.

Commands we could have:

Options we need to be able to set:

Discussion on the forum: https://forum.thegamecreators.com/thread/224400

Thanks.

JimJamsGames commented 4 years ago

Rather than just 2D, full AI is really needed, and for me is a must-have feature, to give Studio the ability to quickly make more advanced games. Something akin to the original DarkAI would be excellent.