I think we all know what roguelike movement is like, entities just move instantly to the tile next to them.
Movement like this is possible I'm pretty sure,
but is it possible to transfer this kind of movement to pathfinding?
Thanks in advance.
You need this plugin:
construct.net/en/forum/extending-construct-2/addons-29/behavior-easystar-js-pathfindi-96215
Rexrainbow also has a bunch of addons for grid-based games, you may find something useful:
construct.net/en/forum/extending-construct-2/addons-29/plugin-board-layout2board-beha-47187
There are also several tutorials on how to move on a grid:
scirra.com/tutorials/all
Thanks for the reply, I got the plugins and I've toyed around with the tilemap pathfinding one, but I don't see a way of making it like classic roguelike movement.
Oddly enough C3 just added a behavior that does this exact movement.
I think you should use EasyStar to find path on a grid, and then some other behavior (for example MoveTo) to move from one node of the path to another.
Develop games in your browser. Powerful, performant & highly capable.
I've messed around with it a bit more and it works! But is there any way for an object to instantly move to the next tile instead of sliding?
Rex had another behavior that did that, can't remember the name though.
github.com/rexrainbow/C2Plugins/tree/master/behaviors
Gridmove maybe?
I got it working now, thanks for the help, all!