How do I add to my score with photon?

Get help using Construct 2

Post » Tue May 02, 2017 10:53 pm

Hey guys,
I have set Families up as Players and Turret and Players has a local variable: score

I'm trying to say: If I hit an enemy tank, add 2 to my score, but right now, it's adding 2 to my enemy's score and not my own.
Image


I can't wrap my head around it.

Thanks!
B
7
S
1
Posts: 41
Reputation: 463

Post » Wed May 03, 2017 12:17 pm

That's because you are telling it to add to Player.Score rather than Player.Score
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Wed May 03, 2017 2:28 pm

Not sure what you mean but I solved this by using a global score, rather than an instance one.

Thanks! :)
B
7
S
1
Posts: 41
Reputation: 463


Return to How do I....?

Who is online

Users browsing this forum: gonzdevour, MassimoF and 26 guests