How do I

Get help using Construct 2

Post » Wed Mar 02, 2016 4:27 am

I've been searching for a while now but I haven't been able to find an answer. I've set up a patrolling AI using the method with the invisible sprites as walls (per the How to make a Platform Game tutorial). I'm wondering if there's a way to only have the walls affect the npcs, keeping them within their bounds, while not affecting the player. Right now, if the player approaches the npc, then the player has to jump over the wall to get to them.

If not which alternative patrolling method would you suggest?
B
3
Posts: 6
Reputation: 212

Post » Wed Mar 02, 2016 7:35 am

don't make them solid. or use if ai is overlapping
B
29
S
13
G
10
Posts: 355
Reputation: 8,327

Post » Wed Mar 02, 2016 1:21 pm

Thanks @Carbincopy. I did try that for my Playerbox and I couldn't seem to get it to work. Would you suggest instead checking for overlap on the npc? So if npc is overlapping boundaries? I can give that a go.
B
3
Posts: 6
Reputation: 212

Post » Thu Mar 03, 2016 3:55 am

So that worked, I just had to create two separate sprites, one for left and one for right
B
3
Posts: 6
Reputation: 212


Return to How do I....?

Who is online

Users browsing this forum: alextro, NN81, takamoto and 8 guests