#Need help with a cooldown system ( Solved )

1 messages · Page 1 of 1 (latest)

twin dove
#

So im working on a game with abilities but idk how to wire it

blissful swallow
#

is it trigger actvated

#

or gestured activated

#

etc

twin dove
#

Trigger

blissful swallow
#

alright so add the instance time along with your desired cooldown into a float variable, after that get a greater than or equal to check if the instance time is greater than the value in that float variable

twin dove
#

can u send it in a screenshoot

blissful swallow
twin dove
#

Thx

blissful swallow
#

you using rooms 1 or 2

twin dove
#

1.0

blissful swallow
#

oh

#

well then use time get precise seconds instead of instance get lifetime

twin dove
#

Ok what do i do with it after

#

Cuz idk where to put

#

@blissful swallow

blissful swallow
#

trigger activation > if

twin dove
#

oh ok and do i set the cooldown at the left variable and thats it?

blissful swallow
#

nah leave it at 0

#

Variables keep the same info when they’re copied

twin dove
#

then how i set the cooldown for it

blissful swallow
#

ight so lemme see the rest of your circuits

#

for the ability you currently have

twin dove
blissful swallow
#

can you send a pic instead

#

i need time to read it

twin dove
blissful swallow
#

ight so id say on the trigger click run the if, connect the if to the run and then run to play audio

#

wait whats the set position connected to

twin dove
#

To the chicken model

blissful swallow
#

i mean whats the orange wire connected to

twin dove
#

To the explosive

blissful swallow
#

is there anything after the explosive?

#

like damage, knockback anything

twin dove
#

No

blissful swallow
#

if thats the end

#

Are you making damage or knockback

twin dove
#

Both, but not rn

blissful swallow
#

ight so after the explosion what you wanna do is grab that cd variable thats connected to the add, and connect the explode to the execution of the variable

twin dove
#

Output or input

blissful swallow
#

output explode > cd variable input

twin dove
#

Like this?

blissful swallow
#

yep

#

it should work

twin dove
#

so how do i change the cd

blissful swallow
#

change the add

twin dove
#

THXxxxx

twin dove
#

Wait

#

uhh can i ask smth @blissful swallow

blissful swallow
#

huh

#

mb i was on shift

twin dove
#

Uhh do u know how to make a hp system for my game

blissful swallow
#

Spawn an int variable and change it to the max health you want and connect it to the value port of set hud element max value

twin dove
#

PNG Tut ? RRpensive