Pathfinding – How To… Construct 2 & 3 Demos https://howtoconstructdemos.com Construct 2 & 3 Example Demos Mon, 14 Sep 2020 19:41:59 +0000 en-US hourly 1 https://wordpress.org/?v=5.7.1 Pathfinding Stack – two examples https://howtoconstructdemos.com/pathfinding-stack/ Sat, 15 Aug 2020 11:24:43 +0000 https://howtoconstructdemos.com/?p=2049 This demo shows how to use Pathfinding stack to visit multiple places on the map. Notice how these clever squares are moving to the exit, while collecting any loot they see along the way. In the second demo you can touch several destinations on the screen, and the squares will visit each one of them! […]

The post Pathfinding Stack – two examples appeared first on How To... Construct 2 & 3 Demos.

]]>

This demo shows how to use Pathfinding stack to visit multiple places on the map.

Notice how these clever squares are moving to the exit, while collecting any loot they see along the way.

In the second demo you can touch several destinations on the screen, and the squares will visit each one of them!

This demo was sent to us by Bart Alluyn. Check out his Youtube channel with great Construct tutorials!

Happy
Happy
50 %
Sad
Sad
0 %
Excited
Excited
50 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

The post Pathfinding Stack – two examples appeared first on How To... Construct 2 & 3 Demos.

]]>
Accurate Pathfinding https://howtoconstructdemos.com/accurate-pathfinding/ Sun, 16 Feb 2020 04:18:15 +0000 https://howtoconstructdemos.com/?p=1634 You may have noticed that pathfinding objects almost never stop at the exact target point, sometimes they stop early, sometimes late, sometimes miss it completely. This example provides a simple solution.

The post Accurate Pathfinding appeared first on How To... Construct 2 & 3 Demos.

]]>

You may have noticed that pathfinding objects almost never stop at the exact target point, sometimes they stop early, sometimes late, sometimes miss it completely. This example provides a simple solution.

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
100 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

The post Accurate Pathfinding appeared first on How To... Construct 2 & 3 Demos.

]]>
Avoid overlapping while moving with Pathfinding – two examples https://howtoconstructdemos.com/avoid-overlapping-while-moving-with-pathfinding/ Mon, 10 Feb 2020 17:32:44 +0000 https://howtoconstructdemos.com/?p=1615 One very common problem with Pathfinding behavior in Construct 3 is preventing pathfinding objects from colliding and overlapping each other. Unfortunately, there is no easy way to do this. We have two demos, which may be a good starting point for someone making an RTS/RPG game. Both downloads include a very well commented event sheet. […]

The post Avoid overlapping while moving with Pathfinding – two examples appeared first on How To... Construct 2 & 3 Demos.

]]>

One very common problem with Pathfinding behavior in Construct 3 is preventing pathfinding objects from colliding and overlapping each other. Unfortunately, there is no easy way to do this. We have two demos, which may be a good starting point for someone making an RTS/RPG game.

Both downloads include a very well commented event sheet.

Example 1

C3P Avoid overlapping at the target point. When several instances are moving to the same point on the layout, they will stop at some distance from each other within the same area.

 

Example 2

Pathfinding

C3P Avoid overlapping while moving. Multiple groups of npcs/enemies can be moving to different destinations, and they will try to avoid overlapping each other.

 

Happy
Happy
50 %
Sad
Sad
0 %
Excited
Excited
50 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

The post Avoid overlapping while moving with Pathfinding – two examples appeared first on How To... Construct 2 & 3 Demos.

]]>
Simple AI with Pathfinding – wolves chasing prey C2/C3 https://howtoconstructdemos.com/simple-ai-with-pathfinding-wolves-chasing-prey-capx/ Thu, 06 Feb 2020 21:33:33 +0000 https://howtoconstructdemos.com/?p=1374 A.K.A The big bad wolf demo. This demo shows you how to use pathfinding behavior when programming enemy AI. As with every Construct 2 and Construct 3 demo, this demo comes with the event sheet. C2 C3

The post Simple AI with Pathfinding – wolves chasing prey C2/C3 appeared first on How To... Construct 2 & 3 Demos.

]]>

A.K.A The big bad wolf demo. This demo shows you how to use pathfinding behavior when programming enemy AI.
As with every Construct 2 and Construct 3 demo, this demo comes with the event sheet.


C2

C3

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

The post Simple AI with Pathfinding – wolves chasing prey C2/C3 appeared first on How To... Construct 2 & 3 Demos.

]]>
Pathfinding – Instantly Showing Path to Cursor Position CAPX https://howtoconstructdemos.com/pathfinding-instantly-and-constantly-showing-path-to-cursor-position-capx/ Sun, 02 Feb 2020 17:32:26 +0000 https://howtoconstructdemos.com/?p=582 This modified Pathfinding template shows you how to visualize path calculation in real-time. It may be useful for an RTS game, RPG or whatever you’re designing.

The post Pathfinding – Instantly Showing Path to Cursor Position CAPX appeared first on How To... Construct 2 & 3 Demos.

]]>

This modified Pathfinding template shows you how to visualize path calculation in real-time. It may be useful for an RTS game, RPG or whatever you’re designing.

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
100 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

The post Pathfinding – Instantly Showing Path to Cursor Position CAPX appeared first on How To... Construct 2 & 3 Demos.

]]>
Using an Invisible Tilemap as an Obstacle Map for Pathfinding CAPX https://howtoconstructdemos.com/using-an-invisible-tilemap-as-an-obstacle-map-for-pathfinding-capx/ Sun, 02 Feb 2020 16:59:30 +0000 https://howtoconstructdemos.com/?p=576 Click any room and the little arrow will find the shortest way to it. This demo shows how to use an invisible TileMap object as an obstacle map in a top-down view game.

The post Using an Invisible Tilemap as an Obstacle Map for Pathfinding CAPX appeared first on How To... Construct 2 & 3 Demos.

]]>

Click any room and the little arrow will find the shortest way to it.

This demo shows how to use an invisible TileMap object as an obstacle map in a top-down view game.

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

The post Using an Invisible Tilemap as an Obstacle Map for Pathfinding CAPX appeared first on How To... Construct 2 & 3 Demos.

]]>
Pathfinding on a hex grid CAPX https://howtoconstructdemos.com/pathfinding-on-a-hex-grid/ Sun, 02 Feb 2020 16:55:08 +0000 https://howtoconstructdemos.com/?p=572 Hexagon geometry may be complicated, but this demo shows a simple way to adapt the official Pathfinding behaviour for a hex grid. C2 version requires MoveTo addon.

The post Pathfinding on a hex grid CAPX appeared first on How To... Construct 2 & 3 Demos.

]]>

Hexagon geometry may be complicated, but this demo shows a simple way to adapt the official Pathfinding behaviour for a hex grid.

C2 version requires MoveTo addon.

Happy
Happy
25 %
Sad
Sad
0 %
Excited
Excited
50 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
25 %

The post Pathfinding on a hex grid CAPX appeared first on How To... Construct 2 & 3 Demos.

]]>