Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

JavaScript Why is my first test good then my second goes bonkers

I have this battle game and the first time you click battle it goes really smooth and well and does everything needed but once I clicked the button again there is supposed to be a 3-4 second gap between all the attacks to each other but it does something like this (1 _ is a second an "at" is an attack don't mind the spaces).



at _ _ _ _ at _ _ at _ _ _ _ at _ at _ at _at _ at _ _ at ... you died or you win.



And it is not exactly that pattern it just does stuff randomly why?

Here is the demonstration video.
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

https://github.com/CodeMaster-exe/alds-fjlsadjflkadsfj-/tree/main

if you want to visit directly and see the CSS go here and click the sword icon and click on the combat once it's unlocked.

https://supersecreturltestghunt1production202.netlify.app/play.html
 
Back
Top Bottom