How do I - Families, containers and pathfinding

Get help using Construct 2

Post » Sat Mar 28, 2015 7:37 pm

Hello everyone.
So I am rather new to construct 2 and as a school project me and my classmates are making a hotline miami-styled game in celtic feeling. We wanted a bit of a stealth element and the possibility to sneak around and have detection.
The issue is this. I used a "Hearing" sprite (Essentially just a growing circle) for checking if its overlapping the player and if it is the enemy who the hearing sprite belongs to would go and check it out, starting to look around to see if they can find the player.
The problem that I found out is that Containers and families does not play nice and it causes all enemies in the family to react as if the hearing sprite was their own.
I am rather convinced that it is caused by that families essentially count all sprites in it as one for the purpose of events.

So my question is this; Is it possible to fix this in any way? Shall I use something other than families for hearing and sight or can it be fixed in some other way?
If someone could be so kind look it over I would really appreciate it.
Last edited by play4leftovers on Sat Mar 28, 2015 7:45 pm, edited 1 time in total.
B
3
Posts: 3
Reputation: 181

Post » Sat Mar 28, 2015 7:38 pm

Terribly sorry, I can not apparently post URLs codes for the dropbox of the Capx file.
I can send it any other way if people want me to.
B
3
Posts: 3
Reputation: 181

Post » Sun Mar 29, 2015 3:15 am

Just add some extra spaces in the URL to trick the URL check.
ImageImageImage
B
71
S
20
G
202
Posts: 3,578
Reputation: 114,450

Post » Sun Mar 29, 2015 1:10 pm

you can pin hearing object to the sprite of your player, then use it. also make sure it's on same layer, and collisions enabled.
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
39
S
14
G
12
Posts: 617
Reputation: 9,297

Post » Sun Mar 29, 2015 2:24 pm

saiyadjin wrote:you can pin hearing object to the sprite of your player, then use it. also make sure it's on same layer, and collisions enabled.

Thanks! That actually solved a lot of problems.
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: maxwell88 and 10 guests