Recursion in construct 2 events?

Get help using Construct 2

Post » Thu Apr 19, 2012 8:47 pm

Hi,

I am trying to do sort of a recursive thing in construct 2, but couldn't quickly figure out a nice way to do it. What I am trying to implement is Lee's algorithm (http://en.wikipedia.org/wiki/Lee_algorithm) for some simple path finding, and to generate the array I need for the algorithm I'd need a 'recursive function call' kind of behavior.

Is there easy way to implement something like that in construct 2?
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Thu Apr 19, 2012 9:40 pm

Have a look at the custom plugins.
I did a astar pathfinder behavior a while ago, and recently 00rez has made a faster (and possibly better) version of his own (relying on a astar plugin).

If you really want to do it yourself, I think you'll have to go through the SDK and implement your own plugin/behavior.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Fri Apr 20, 2012 1:16 pm

Thanks, I did look through those plugins but what I need is actually much simpler solution so I think I'll look for another way to do this. Recursion was just seemingly easiest thing that popped to my mind, but there should be other ways as well :)
B
24
S
8
G
7
Posts: 756
Reputation: 7,192


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests