[Request] Courses / Paths / Nodes / Line for Ways.

Discussion and feedback on Construct 2

Post » Tue Jul 02, 2013 7:56 pm

+1
would like to see the pathfinding ability have an option to display the path it takes before moving - pre much what this is
B
39
S
12
G
6
Posts: 136
Reputation: 6,322

Post » Tue Jul 02, 2013 10:42 pm

You can draw the path of the pathfinding behavior by placing sprites at each node and aiming them to the next node.Arima2013-07-02 22:42:59
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Tue Jul 02, 2013 11:34 pm

[QUOTE=Arima] You can draw the path of the pathfinding behavior by placing sprites at each node and aiming them to the next node.[/QUOTE] That is a good work around, but pathfinding is for more complicated interaction of pathing. While it is good for some things, sometimes having more manual graphical control over modular control is more efficient.

Sort of like WebFont VS SpriteFont for functionality.
B
15
S
4
G
4
Posts: 294
Reputation: 3,225

Post » Wed Jul 03, 2013 3:50 am

+1 yes this would be a great feature/plugin, there's so much you can do with it
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Wed Jul 03, 2013 7:50 am

It needs the supporting of layout editor to define/draw the path, so that it might not be easy to implement with 3rd plugin.rexrainbow2013-07-03 07:50:56
B
97
S
22
G
178
Posts: 4,122
Reputation: 104,051

Post » Wed Jul 03, 2013 2:26 pm

It might be possible with an object where you place instances of the object to represent the path. The question is can the editor connect the dots... la, la la la.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Wed Jul 03, 2013 2:36 pm

[QUOTE=newt] It might be possible with an object where you place instances of the object to represent the path. The question is can the editor connect the dots... la, la la la.[/QUOTE]
@Arima I understand what you said by making sprite appear at each node but like newt is saying above
how would I connect these nodes?
with the path/course feature or an update to pathfinding this would be expected to be possible without addtl events
B
39
S
12
G
6
Posts: 136
Reputation: 6,322

Post » Wed Nov 13, 2013 5:50 pm

[QUOTE=DrGreenThumbCAN] [QUOTE=newt] It might be possible with an object where you place instances of the object to represent the path. The question is can the editor connect the dots... la, la la la.[/QUOTE]
@Arima I understand what you said by making sprite appear at each node but like newt is saying above
how would I connect these nodes?
with the path/course feature or an update to pathfinding this would be expected to be possible without addtl events[/QUOTE]

Pretty simple, tag each node with a instance variable, then connect each using a for each loop, checking the actual node and the next node X and Y, setting the angle and stretching a dot image, like on the tutorial for LOS.

This topic is about pre determined paths, what make easy the determination of courses for objects in scrolling games, race games, etc.

How easy it would be for a race game, for example?

Well, you could make the car following the path, then, setup the car behavior to vary his target on the course (like the SIN behavior), making it more real, and never getting lost.

I did a similar system on this sample game (http://goo.gl/TCWPp), but it was a huge job for a single stage...

Edited: updated the first post with more images;

I hope someday this catch attention and deserve a place on Construct 2 heart.
ImageImageImageImageImageImage
B
93
S
20
G
13
Posts: 1,217
Reputation: 18,998

Post » Thu Nov 14, 2013 3:02 am

I'm up for that. Anything that would streamline the development.

If anyone wants to know, I'm currently using MoveTo Behavior plugin ( but this technique can be done with any movement type, but would have to be slightly modified to adopted the movement, for example direction and distance to pass before next call). I've created object text variable for the sprite I want to move with value like this

864`960__864`736__864`536__464`536

and numeric variable that holds steps made. Also I have one more variable UpDown that is responsible for reversing the movement pattern.

The events sheet looks like this


Hope that helps!
megatronx2013-11-14 03:06:42
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Thu Nov 14, 2013 11:49 am

Personatly i make a layer call "route".
I place on it square sprite with a route_index_variable that contain the number of the node path.
1,2,3, .....

in code i move the layout following this path.
basic and working.

Not simple if you need lot path and for lot of entity (npc rpg) but it's ok for a simple auto-scrolling level for exemple.
B
85
S
14
G
6
Posts: 71
Reputation: 7,235

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests