Position Checking and Behaviors

Get help using Construct 2

Post » Sat Apr 13, 2013 12:08 am

How does position checking work with behavior such as pathfinding?

I have a variable that is supposed to be set to 1 when the enemy gets close, but my debug textbox (updated every tick) shows this is clearly not happening.



Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Sat Apr 13, 2013 1:31 am

Hey Excal,

I'd be happy to take a look for you if you strip it down and post a cap.
ImageImage
B
73
S
16
G
6
Posts: 1,038
Reputation: 10,473

Post » Sat Apr 13, 2013 1:41 am

Sure!

SpaceGame.capx

Not really stripped down, but the only relevant part to look at is the EnemyHandling group.Excal2013-04-13 01:42:54
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Sat Apr 13, 2013 2:17 am

Seems like it is working. You just needed to increase the distance from the object for it to tick over properly. I have replaced the Or block with a distance check, much easier to work with and modify.

Just waiting for this to upload to dropbox will post it in a minute.

http://db.tt/whSjOPau

GenkiGenga2013-04-13 02:28:12
ImageImage
B
73
S
16
G
6
Posts: 1,038
Reputation: 10,473


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests