In this block, add self.attacking = true.
Add self.attacking = false here in this block
Replace this by
if action.pressed and not self.attacking then
Same for here.
This should do the trick. Just try and tell.
In this block, add self.attacking = true.
Add self.attacking = false here in this block
Replace this by
if action.pressed and not self.attacking then
Same for here.
This should do the trick. Just try and tell.
thank you so much, you really solved my problem. I really am appreciate your help. You are the best!
I suggest that you really analyse the final code and try to understand every detail of it. Why did you have to add the things @TheKing0x9 suggested? What was wrong before? Try to understand these things and youāll have a little more knowledge about programming game logic the next time you get stuck.
okay I am trying my best thank you