Discuss Scratch

MrHCS20Coding4
Scratcher
9 posts

SOLVED - Why isn't my damage animation working



I have it set to play an animation whenever my character gets hurt. This animation takes up costumes 10-14. Thanks in advance!

Last edited by MrHCS20Coding4 (Oct. 23, 2023 02:00:01)

grkw2020
Scratcher
500+ posts

SOLVED - Why isn't my damage animation working

That code only changes the costume once. Instead, use something like this:

switch costume to [hurt_1 v]
repeat (4)
next costume
wait (0.1) secs
end
MrHCS20Coding4
Scratcher
9 posts

SOLVED - Why isn't my damage animation working

grkw2020 wrote:

That code only changes the costume once. Instead, use something like this:

switch costume to [hurt_1 v]
repeat (4)
next costume
wait (0.1) secs
end

I tried changing it but it seems to only play the first frame of the hurt animation.

MrHCS20Coding4
Scratcher
9 posts

SOLVED - Why isn't my damage animation working



actually it may be because it keeps going back to my idle animation, im not sure how to fix this though..

edit: Fixed it! thanks for the help

Last edited by MrHCS20Coding4 (Oct. 23, 2023 01:59:32)

InkTheCoder
Scratcher
32 posts

SOLVED - Why isn't my damage animation working

MrHCS20Coding4 wrote:

actually it may be because it keeps going back to my idle animation, im not sure how to fix this though..

edit: Fixed it! thanks for the help

Can I get a picture of all the code dictating your animations for your character?

Edit: read the whole post for the last post…woopsie

Last edited by InkTheCoder (Oct. 23, 2023 02:01:01)

Powered by DjangoBB