Question about pathfinding.

Get help using Construct 2

Post » Tue May 28, 2013 6:11 am

I'm trying to get sprites to move to a random area in another sprite, think like a large waypoint or "zone". Otherwise they all move to the same spot and stack. How do I fix this?

Here's a link to a really basic .capx that helps explain the problem.

Example.capx
B
6
S
1
Posts: 2
Reputation: 379

Post » Tue May 28, 2013 6:34 pm

Bump, anyone have any idea?
B
6
S
1
Posts: 2
Reputation: 379

Post » Tue May 28, 2013 7:06 pm

Get the top left coordinates of the zone, then get the bottom right and randomize within those coordinates.
B
44
S
13
G
7
Posts: 603
Reputation: 7,926

Post » Wed May 29, 2013 5:37 pm

Hi,

@Kabookie
I have a solution for you.

Capx
http://drappdev.net46.net/Construct2/MySolutions/topic68518_solution.capx]topic68518_solution.capx

ScreenShot of Events
http://drappdev.net46.net/Construct2/MySolutions/topic68518_solution.png

Live
http://drappdev.net46.net/Construct2/MySolutions/topic68518/

Uses
1 Behaviour: Pathfinding
2 Sprites: BulletSprite & Zone
2 Events: See Capx

Hope this helps.

DR App Devdrappdev2013-05-29 20:18:52
B
13
S
4
G
3
Posts: 21
Reputation: 2,134


Return to How do I....?

Who is online

Users browsing this forum: 20170217, alimuqaddas, Lancifer, MadSpy, Zion and 3 guests