Does anyone know how to be Idle at certain moments or some code that will take up some time other than the spawn collecter code?I need code that will take up some time while I am collecting more Mana fruit to summon more spells or because of the cool down preventing me to summon spells.I can’t making more collecters every time I have a cool down period or is low on mana fruit to cast any spells.To spawn collecters,it takes some time and doing that makes me vulurable to attack.I spectated other rounds,hopeful to find some clues and finally,I did.It was the action “Idle”.But…There was a problem.
Right now the only way I know how to be "Idle is when it is the end of your code and your hero does nothing.How would this help me?Well If I could get some code that could be able to control the time of the Idleness, collect more Mana fruit for more spells,pass the cool down period and control my enemy’s amount of blows on me.This could be the key to solving my problem.Do any of you out there know the solution to my problem?Or do you have a totally different way to solve my problem?Please let me know if you have any suggestions.Thank you.
P.S This has to be in Java.