Path plugin

Discussion of tools and resources for game developers

Post » Mon Nov 10, 2014 4:43 pm

Is there (here) a plugin that allows me (as game creator) to draw path where my "enemy" will walk?
I found a plugin SplinePath but this is not what I need.
B
6
S
1
Posts: 57
Reputation: 514

Post » Mon Nov 10, 2014 6:16 pm

There is the "Step" plugin which will draw the path, but then you could simply make the player follow each "path" step it creates one after another.

Upon each creation of the path sprite that the plugin draws, give it a number that increases by 1

then after letting go of the button have it look for the lowest number one. upon touching it, look for the second one etc,

it will follow the path
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Mon Nov 10, 2014 6:23 pm

Thank you @justifun, much appreciated ;)
B
6
S
1
Posts: 57
Reputation: 514

Post » Mon Nov 10, 2014 6:29 pm

B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Mon Nov 10, 2014 6:30 pm

@Lazarus1988 - there's a couple of bugs you might want to iron out in my example, but hopefully it gets to you going in the right direction.
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Mon Nov 10, 2014 7:14 pm

@Justifun, I owe you one god damn big beer ;)
B
6
S
1
Posts: 57
Reputation: 514

Post » Mon Nov 10, 2014 7:23 pm

Oh could you save it in lower version? I did not updated to latest version my copy of construct
B
6
S
1
Posts: 57
Reputation: 514

Post » Mon Nov 10, 2014 7:25 pm

Sadly I don't have an older version installed, but here's the event sheet

https://dl.dropboxusercontent.com/u/403 ... tSheet.png
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Mon Nov 10, 2014 7:27 pm

The arrow as the bullet behavior

the green box has a drag/drop behavior and also the step behavior

and the tracer has a variable called "Counter" on it
B
90
S
44
G
17
Posts: 1,012
Reputation: 18,527

Post » Mon Nov 10, 2014 7:41 pm

Ok, got it :) But i cannot find that plugin (Behaviour) "Step", is it included on latest release, or this is custom plugin? If custom, could you attach it?
B
6
S
1
Posts: 57
Reputation: 514

Next

Return to Tools and Resources

Who is online

Users browsing this forum: No registered users and 1 guest