#Latency on uppercut and downslam animations (trying to make a battlegrounds game)

1 messages · Page 1 of 1 (latest)

terse tendon
#

I´m starting to think that adding a latency like "task.wait(cooldown)" to the script where the dummy slams down and flies up will help where should I place that timer?

#

heres a screenshot of the script

bronze yarrow
#

Can you explain what exactly you are trying to do?

#

I don’t see how intentionally adding latency would help

terse tendon
#

the animations in the video arent synced to the dummies hits of the downslam and the uppercut ive made 10 different versions of both animations and tried to adjust them to time the latency issue but since it isnt going anywhere I thought why not just add a timer before the actual hit happens?

sullen sandalBOT
#

studio** You are now Level 5! **studio

terse tendon
#

actually nvm Ì might know a alternative to try

#

Ill come back here and tell you if it worked or not

bronze yarrow
#

Okay

bronze yarrow
#

You would put the wait after the guards

#

An animation event would also work

#

So that the hitbox is only deployed after the hit animation is played

#

That would remove the need for await

terse tendon
bronze yarrow
#

Wdym?

#

The problem is that the enemy is damaged as soon as the ability is activated, not as soon as the impact animation is played right?

terse tendon
#

what i meant is if the gravity is lower then the animation has to play faster which might cause it to connect otherwise ima try to delay the impact frame of the dummy

bronze yarrow
#

Oh I see

#

So yeah it’s pretty simple

#

Add task.wait(.5) (experiment a little) inside “if ray then…”

#

If you want the damage to happen simoltanioysly, move the wait up a little

#

evilcat idk how to spell that lmao

terse tendon
#

alr yeah ill definitely try that thanks for the help

bronze yarrow
#

Np

terse tendon
terse tendon
terse tendon
bronze yarrow
terse tendon
#

yeah it worked thank you so much for the help upvote

bronze yarrow
#

Np

terse tendon
#

btw I started working on a blocking system but ran into some issues i could link you to that post if you wanna check it out

terse tendon
#

alr ill forward it

bronze yarrow
#

WOAH I DIDNT KNOW YOU COULD FORWARD STUFD

#

COOL