How do I use function with family

Get help using Construct 2

Post » Thu Jul 16, 2015 1:18 am

Hi,

I have a project with a family named "enemy" which include 4 objects, each objects has different family instance variable "damage", when my character on collision with family, a text pop out to show the damage that each object made to character, everything works fine, but now i want to change the text pop out event into a function,, when I call the function the text can not show the damage correctly, I thought problem is I need to pick the exact instance, but do not know how to do, please help, thanks

file:https://www.dropbox.com/s/h1whv76tvtc741m/function%20with%20family.capx?dl=0
B
11
S
3
Posts: 172
Reputation: 1,178

Post » Thu Jul 16, 2015 1:54 am

You need to pass in the UID so you can pick the same enemy.
http://www.blackhornettechnologies.com/ ... y_BHT.capx
ImageImageImage
B
71
S
22
G
247
Posts: 3,753
Reputation: 137,552

Post » Thu Jul 16, 2015 4:17 am

@blackhornet thank you so much
B
11
S
3
Posts: 172
Reputation: 1,178


Return to How do I....?

Who is online

Users browsing this forum: Lisa999, RandomlyMooN and 8 guests