Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript window.setInterval(function() Need help Reply To: window.setInterval(function() Need help

#191898
tarnos12
Participant

I see, thanks, right now I want to change my code so instead of 32x onclick functions x32 battle/exp/gold/item drop code I can put it all into 1 function, because each monster or item I add I need to change all of that, which is annoying -_- so I decided to check out objects in javascript and see how it works. I hope it will work out, since I dont want to edit x100 part of the code if I decide to change damage/exp etc formula. Also I deleted all of that “red” part of the code and it works good :) thanks for that