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
7
S
2
Posts: 2
Reputation: 504

Post » Tue May 28, 2013 6:34 pm

Bump, anyone have any idea?
B
7
S
2
Posts: 2
Reputation: 504

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
46
S
14
G
7
Posts: 603
Reputation: 8,096

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
14
S
4
G
3
Posts: 21
Reputation: 2,164


Return to How do I....?

Who is online

Users browsing this forum: Ajbael, the_Shit_hawk and 11 guests