-1
I don’t know how else to explain it but come on.
I have a game with . js fighting system the current idea is to add CD (Reload Time) in Skills.
When I use another Skill the previous one comes out of CD and puts the new one on CD.
If the CD is 1 it works because the . JS takes one Skill on CD at a time, BUT here comes the question and if you have two on CD? As the CD is 1 ends up working but when I increase it... The Skill on 1 CD Exits the CD and 10 Enters, but when I click on another that has 1 CD to use it, the Skill on 10 should go to 9 8 7 until finally exit the CD, but what happens is the following: The new one goes on CD but the old one doesn’t change on the console.log Here she sent to Skill "Soco" to leave the CD, ie she sends only 1 time this "t_desblock_o".
php file. Here the idea is simple, it orders in ID to take the CD of the last Skill placed and work in 1 in 1, because if it is not so it lets all other Skills work normal while the 10 does not reach 0. battle js. This is the JS code that takes the value and then makes the change in jQuery