This site requires JavaScript, please enable it in your browser!
Greenfoot back
ToraAvanak
ToraAvanak wrote ...

2017/7/12

Ability Cooldowns

ToraAvanak ToraAvanak

2017/7/12

#
Hello! I'm working on a video game that incorporates the use of an ability and a cooldown timer. For convenience sake, I wanted to display the timer of the ability cooldown somewhere on the scree, but I don't really know where to start. (I'm also new to the forums, so forgive me if I seem too formal.)
danpost danpost

2017/7/12

#
Sounds like you could use something like a bar type object (similar to a health bar in appearance). Only, this bar will either increase or decrease with time and the ability will be reusable when the time has expired. You can check out my Value Display Tutorial scenario to see how to create a bar object (or other type object that can display your timer). If you cannot access it, you can also find the tutorial here. I do have a Bar support class that you could use. It is in my Progress bar/Health bar class scenario. There is also a TimerBar subclass that can be found in this scenario (the Bar class is obviously found in this one also).
You need to login to post a reply.