• Hello Guest! Did you know that ProjectKorra has an official Discord server? A lot of discussion about the official server, development process, and community discussion happens over there. Feel free to join now by clicking the link below.

    Join the Discord Server

I need help at coding skill. (Adding cooldown)

boybuscuss

Verified Member
Hey there,i am a rookie java coder.Actually i know nothing about java,my players (in my server) wanted me to code a anility,so i decided to code a ability.I did everything right,the abilty works well but ability do not have cooldown.How do i add cooldown in eclipse ? The files i have "abilityname". Java
"abilityname"manager.java
"abilityname"info.java
" abilityname"listener.java
And im doing this all with finn's API tutorial.How do i add the cooldown code,and where ?
 

jedk1

New Member
I already told you, you can put it either where you start your ability or when you end your ability (both in your ability class). There is no correct place to put a cooldown as it all depends on your usage of the ability and what is going to do.
 

boybuscuss

Verified Member
My ability is just left clicking,shooting particles and exploding.So i need help about adding cooldown to this ability.
 

boybuscuss

Verified Member
I just looked through finn's project korra API blast episode 2,i just did everything exactly with the video,ability runs perfectly BUT doesnt have a cooldown and i dont know where to add,and dont know where the ability starts.
 

jedk1

New Member
If you dont know where the ability starts, get a better understanding of java, then it will become clear.
 

jedk1

New Member
Ive told you how. If you dont understand what ive said so far, then get a better understanding of java and how it all works. You are gonna need that knowledge anyway if you plan on going big with addons.
 

boybuscuss

Verified Member
i just need for this ability,after this im gonna learn about java.But i promise my players that im gonna add new ability for them.Just please.I need to learn how to add a cooldown,yes i loved coding,so i must learn java.And yes i love this forum's community.So i think i must add a addon ability or help players about that.I really LOVE this forum.
 

boybuscuss

Verified Member
Lets name this ability "yayy" my files are
yayy.jar
yayyinfo.jar
yayymanager.jar
yayylistener.jar

First of all,which file the ability starts ?
 

jedk1

New Member
I already told you, you can put it either where you start your ability or when you end your ability (both in your ability class). There is no correct place to put a cooldown as it all depends on your usage of the ability and what is going to do.
 
Top