Discuss Scratch

SpeedSpot
Scratcher
18 posts

Broken Scoring Method

Here's the project:

When you destroy another player it's supposed to mark you up a point on the leaderboard for everyone else in the game. However, for some reason it only does so for the player who got destroyed. I'm not sure how to fix this.

This will make more sense after seeing the game: The way I'm scoring it right now is that it saves the last person who hit you, which it stores in cloud variables. Then, when you die there is another variable that counts the number of times you've died. This is also stored on the cloud variables. The other players store each others death number in a list. When you die it gets marked up and the other players should know that you've died. It looks at who you were last hit by and then it should be able to use that to give you a point on the leaderboard for the other players.

I'm not sure why it doesn't work.

This is not because Scratch's cloud variables are down! I tested it in Turbowarp.

Also near the top left of the code in the Player's sprite there are a few blocks that you can click to display a list that shows the cloud variable's information.
50_scratch_tabs
Scratcher
1000+ posts

Broken Scoring Method

I don't have a solution to your problem, but anytime your topic is not on the first page of the forum you may bump. (Just post the word “bump”)

This counts
SpeedSpot
Scratcher
18 posts

Broken Scoring Method

bump
magicsponge321
Scratcher
26 posts

Broken Scoring Method

I don't know.
50_scratch_tabs
Scratcher
1000+ posts

Broken Scoring Method

magicsponge321 wrote:

(#4)
I don't know.
Then don't post anything!

Powered by DjangoBB