suggestion: path following

This forum is currently in read-only mode.
From the Asset Store
Move around the rectangular and travel as much as you can!
  • suggestion: path following

    Alright, I need to have a bunch of marble sprites follow a path in a tube (or half-pipe) picture. This could be a built-in feature of Construct, a behavior. I could set a start point, an end point, and a path (an invisible line) for the behavior. Everything with "follow path" checked in their properties would connect to the path on contact with it... or could be coded to connect only to objects already on the path.

    Obviously, this would allow one to make a game similar to Zuma or Sparkle, and I believe I would actually like to make a game like those. I'm not sure if I could do it without some sort of behavior built into Construct, but I've done similar things in ActionScript 1.0, so I'm positive it can be done.

  • I support a path movement, but not quite like you suggested, because that sounds a little too specific to that game-type.

    I don't think Construct should make your games for you, hehe.

    A path movement with nodes or following a vector however, I fully endorse (as if it matters, Ashley is king )

  • This has been mentioned before and is on the todo list, but here is my idea (Quoted from "Object and behaviour requests" page 2)

    [quote:ljn03k55]I would like to see a path object & behaviour where you place a path object and give it a path name and decide where the waypoints are then any object with the path behaviour can be told to follow the path.

    eg: I place two path objects and give them each 10 way points, one is "Left" the other is "Right". Then I create a sprite with the path behaviour and I can tell it to follow Left, reverse at the end of Left, and then follow Right.

    This would allow more than one path for each object which makes designing custom AI easier

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • This has been mentioned before and is on the todo list, but here is my idea (Quoted from "Object and behaviour requests" page 2)

    [quote:aq61xzdb]I would like to see a path object & behaviour where you place a path object and give it a path name and decide where the waypoints are then any object with the path behaviour can be told to follow the path.

    eg: I place two path objects and give them each 10 way points, one is "Left" the other is "Right". Then I create a sprite with the path behaviour and I can tell it to follow Left, reverse at the end of Left, and then follow Right.

    This would allow more than one path for each object which makes designing custom AI easier

    I'm liking the sound of that one, it would certainly make programming AI and pathfinding a lot easier.

  • would be cool if you could make the paths curved,

    so like you have 2 points that it would usually move to in a straight line, then you could drag a box in the middle of the line one way or the other and it would bend the path so you could make nice curved paths rather than an approximated path using multiple straight lines.

  • hm i know it uses quite a bit cpu but you could use the rts movement's pathfinding. Maybe...

  • The RTS movement only burns CPU if you make a mistake in your events and ask it to recalculate the path every tick (done in the 'Move to...' actions). If you limit it to once per second at the most regular, you shouldn't have any CPU usage problems.

  • The RTS movement pathfinding would work in lots of cases, but if it was to be used for paths in a sidescroller or game where there is supposed to be some decent AI (taking paths that avoid stronger enemies or other comparing), it don't think it would work, or work efficiently.

  • this would be a pretty cool addition I can already think of what could be made with it.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)