Movement along path determined with nodes

Get help using Construct 2

Post » Mon Mar 17, 2014 10:04 pm

Hi, whats the easiest way of making movement along path created by nodes hard-placed on the map ?

I want to place invisible objects on layer, set order id for each of them, and then make an object move to each of them ?

I want to make a simple tower defense with determined path on the map, and make enemies follow that path.

Pathfinding in such situation in complete overwhelming.
B
4
Posts: 8
Reputation: 216

Post » Mon Mar 17, 2014 10:38 pm

MMM maybe add a instance variable... so when a sprite touches one of the nodes it will add 1 to such variable

and then have like this

if instance viriable=0
move to node 1

when it reaches the node
add +1 to instance viriable

if instance viriable=1
move to node 2

when it reaches the node
add +1 to instance viriable

if instance viriable=2
move to node 3

when it reaches the node
add +1 to instance viriable

and on and on

try chaning the pathfinding behaviour to "ignore diagonals"??

this is a very shallow idea... but if you dont find any answers try it :)
B
23
S
6
G
3
Posts: 316
Reputation: 3,461

Post » Tue Mar 18, 2014 1:33 am

If you are looking for simple waypoint movement, check out viewtopic.php?t=77290&start=0#376606
B
6
S
1
Posts: 16
Reputation: 432


Return to How do I....?

Who is online

Users browsing this forum: AllanR, Artcadev, Google [Bot] and 12 guests