How do I random pathfinding in defence game?

Get help using Construct 2

Post » Mon Apr 04, 2016 12:49 pm

Hi,

I want to my enemy find the path by randomly such as in picture:

Image

any help please?
B
10
S
3
Posts: 180
Reputation: 1,212

Post » Mon Apr 04, 2016 2:39 pm

That question is flawed. Truly random would also mean 1000 times arround de circle and 9 times arround the blok.

What you draw is not random, its biased. Luckely that makes it easyer to do. You just need the path to be calculated in differend ways, and having the same amount on succes. The easy way could be this way.

https://
drive.google.com/open?id=0B1SSuCVV8v74QklEZ3dMM1prc0U

But then better balanced, i lost my patience with myself.
B
33
S
18
G
27
Posts: 2,441
Reputation: 20,346

Post » Mon Apr 04, 2016 3:38 pm

Thank you man,
You capx work very well.
B
10
S
3
Posts: 180
Reputation: 1,212


Return to How do I....?

Who is online

Users browsing this forum: ivanski1983 and 4 guests