Ask coding questions

← Back to all posts
How to add shields in python
rockfantic (0)

I am working on a rpg using the python coding language. I just started adding weapons and health items. I want to add shields but I don't know how to make defense. Can anybody help me with this.

Answered by QuantumCodes (28) [earned 5 cycles]
View Answer
QuantumCodes (28)

Is this pygame? Did you try making a variable named shield? Do something like:

QuantumCodes (28)

@rockfantic do you see the checkmark below the upvote button on my comment? That marks the answer as correct. If you feel this is correctly answered then you may click on that so others know that you dont need more help