Obstacles

Just started using Construct 2? Post your questions here

Post » Fri Aug 29, 2014 12:54 pm

how do i choose 1 particular instance as an obstacle in pathfinding?
B
17
S
4
G
1
Posts: 203
Reputation: 1,583

Post » Thu Sep 18, 2014 6:31 am

Hi, after adding a path-finding behavior to your object(lets call it enemy). You go to the event sheet, add a new event - for this I'll use 'On start of layout' and add a new action for 'enemy'. You then scroll down until you see the title "Pathfinding" then you choose 'add obstacle' and you just choose that particular object you want to be an obstacle. That's it!
"The first principle of a free society is an untrammeled flow of words in an open forum." - Adlai E. Stevenson
B
13
S
1
Posts: 19
Reputation: 1,108


Post » Tue Sep 23, 2014 1:30 am

Just 1 instance,not whole sprite of same type
B
17
S
4
G
1
Posts: 203
Reputation: 1,583

Post » Tue Sep 23, 2014 1:45 am

I'm confused by your question, are you wanting to set an instance already on the screen to be an obstacle in pathfinding, or to spawn one in front of the player and have the Player object treat it as an obstacle in pathfinding, or...?
Founder of Jadelight Studio, Developer of Libertas Aedifex, regular C2 Help contributor and fan of ambient music and Star Wars.
B
12
S
4
Posts: 255
Reputation: 2,008

Post » Sun Oct 05, 2014 2:02 pm

An instance already on screen,particular uid
B
17
S
4
G
1
Posts: 203
Reputation: 1,583

Post » Sun Oct 05, 2014 2:47 pm

you mean like this
You do not have the required permissions to view the files attached to this post.
B
252
S
39
G
15
Posts: 1,964
Reputation: 40,753


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests