How do I implement a kill/death/assist scoring system

Get help using Construct 2

Post » Fri Nov 20, 2015 1:17 pm

:? hey i was wondering how id go about implementing a kill/death/assist scoring system in my game i have multiple allies so if i set,
*enemy on destroyed
-then add 1 to kills
then my allies would be helping me get the kill i need some way to find out who hit it last so they get the point thanks!
B
5
Posts: 4
Reputation: 233

Post » Sun Nov 22, 2015 8:11 pm

You need variables (probably global) or a global data object (array, hash map, dictionary, etc.) to track all of the kills, etc. Each sprite has a UID to identify individual sprite instances.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,347
Reputation: 4,688

Post » Wed Nov 25, 2015 9:13 am

gumshoe2029 wrote:You need variables (probably global) or a global data object (array, hash map, dictionary, etc.) to track all of the kills, etc. Each sprite has a UID to identify individual sprite instances.



hmm i thought i'd need some kind of variable, i'm still pretty new to all this programming, but thanks to this community i'm learning alot, can u take a look at my capx and make it work so i can study off ur genius? thanks

https://www.dropbox.com/sh/mjtw8yqvrnag ... 078ba?dl=0
B
5
Posts: 4
Reputation: 233

Post » Wed Nov 25, 2015 1:48 pm

Not very beautiful, but working..
Just to give you one possible idea on how to do something like that:

https://dl.dropboxusercontent.com/u/485 ... royed.capx
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Nov 25, 2015 3:13 pm

LittleStain wrote:Not very beautiful, but working..
Just to give you one possible idea on how to do something like that:

https://dl.dropboxusercontent.com/u/485 ... royed.capx


nice ty by the name of ur capx sounds like its somewhat what i need, sorry to bug you but i cant see it cuz im on 216 how do i update to 217?
B
5
Posts: 4
Reputation: 233

Post » Wed Nov 25, 2015 3:17 pm

My capx is just an adaptation of yours..

Link to the latest beta is on the bottom of this page:

https://www.scirra.com/construct2/releases/r218
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Nov 25, 2015 3:26 pm

LittleStain wrote:My capx is just an adaptation of yours..

Link to the latest beta is on the bottom of this page:

https://www.scirra.com/construct2/releases/r218


perfect i can work with that thanks for all your help my friends :) maybe they can put this in the "how do i " section
B
5
Posts: 4
Reputation: 233

Post » Tue Dec 01, 2015 4:24 pm

I was out for Thanksgiving, but it looks like LittleStain hooked you up.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,347
Reputation: 4,688


Return to How do I....?

Who is online

Users browsing this forum: Burvey, skrotar and 10 guests