How do I solve this problem?

Get help using Construct 2

Post » Sat Apr 15, 2017 11:03 am

I am trying to have npcs show their own dialogue box when they see the player using "line of sight". So I put out the sprite called "bubble" which is the text box where the text is to be displayed onto a certain npc. Then if the "bubble" is overlapping the npc it will also have it's position set to that specific npc. However, that's where the problem occurs. If there are more than one npc per layout and each one of them have their own "bubble", the "bubbles" won't set their each position to their npc. Instead of that, all "bubbles" are set to just one of the npcs around, giving one of the npcs all of the other np's "bubbles".

The npcs are all parent to a family called "NPCs". The "bubble" is just one sprite.
A more short explenation would be. If "bubble" is overlapping "NPCs", set "bubble" position to (NPCs.ImagePointX(0), (NPCs.ImagePointY(0)

If there is a better solution for this please tell me! Any help is much appreciated!
B
4
Posts: 12
Reputation: 224

Post » Sat Apr 15, 2017 12:04 pm

Sir, I believe you need to use families. I just recently learned how through the construct 2 example "families"

In that example you will see that there is only one sprite for the bullet, with the use of families every bullet will share the same conditions but act individually, this should point you in the right direction.
B
15
S
6
G
5
Posts: 30
Reputation: 3,652

Post » Sat Apr 15, 2017 12:10 pm

GOObGONE wrote:Sir, I believe you need to use families. I just recently learned how through the construct 2 example "families"

In that example you will see that there is only one sprite for the bullet, with the use of families every bullet will share the same conditions but act individually, this should point you in the right direction.


Many thanks!
B
4
Posts: 12
Reputation: 224


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, Bootfit, jorgmaquoi, OddConfection, Rable, unicornspitfire and 10 guests