[Behavior] Cooldown

Post your completed addons to share with the community

Post » Tue Nov 15, 2011 10:28 am

Cooldown
Update: 2013/04/26

Uh, it is a controllor to maintain a cooldown.
(Cooldown in wiki
...One can think of cooldown as the reload time and firing rate of weapons. For example, a machine gun has very fast firing rate, so it has a very low cooldown between shots. Comparatively, a shotgun has a long reload/cooldown time between each shots....)

Download Timeline plugin first. (Cooldown is another timer application.)

Sample capx



"action: request a call".
- if internal timer is not running, plugin will trigger the event "condition: on call accepted". Then start the internal timer with time-out to cooldown interval.
- if internal timer is running, plugin will trigger the event "condition: on call rejected".


A sprite can have more then one cooldown behavior.
rexrainbow2013-04-26 05:52:51
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Tue Nov 15, 2011 10:37 am

I'm not sure I understand what this does?
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Tue Nov 15, 2011 10:41 am

Sorry for my poor english.

Cooldown in wiki
...One can think of cooldown as the reload time and firing rate of weapons. For example, a machine gun has very fast firing rate, so it has a very low cooldown between shots. Comparatively, a shotgun has a long reload/cooldown time between each shots....rexrainbow2011-11-15 10:49:12
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Tue Nov 15, 2011 12:04 pm

Ahh, got you, so instead of continous shooting there's a delay between bullets? Nice.
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Tue Nov 15, 2011 12:26 pm

Yes.
And a sprite can have more then one cooldown behavior, it means that character can have more than one kind of weapon with delay independently.
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Post » Tue Nov 15, 2011 2:37 pm

nice job rex...your work is always so patient and accurate..tnx 4 all
B
159
S
38
G
11
Posts: 229
Reputation: 17,361

Post » Tue Nov 15, 2011 2:42 pm

Oh wow! You rock. I hope I can figure out how to plug it into a game.
B
13
S
5
G
3
Posts: 21
Reputation: 2,025

Post » Tue Nov 15, 2011 5:51 pm

This sounds like something I could use in my first game that I am planning, excellent...

:D
B
22
S
8
G
5
Posts: 14
Reputation: 3,859

Post » Tue Nov 15, 2011 6:41 pm

i add this to my game thanks :)
B
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Post » Tue Nov 15, 2011 6:53 pm

Awesome work, Rex. So helpful!
B
20
S
5
G
7
Posts: 151
Reputation: 4,830

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests