Ask coding questions

← Back to all posts
How do I deduct the damage
VulcanWM (2341)

So me and @SpaceFire are trying to make this multiplayer game where you have to defeat this guy. Each player will reduce the guy's health by a number between 1 and 5000. We are using json files to save the username and how much health is being deducted. But the problem appears when we try to deduct the health from the guy. We have used several methods to do that, but all of them gave errors. Now we have no ideas left. Can you please help us?

Answered by CodingCactus (4188) [earned 5 cycles]
View Answer
SpaceFire (120)

Someone end our misery

VulcanWM (2341)

I actually thought somebody found the answer to this @SpaceFire