The Boy Who Would Be Thunder!

How did you make the fan-shaped hitbox

1 Like

Sorry, what are you referencing?

1 Like

I am making a sequel of my game:

I’ll share you the topic link later.

1 Like

In the game, The Boy Who Would Be Thunder, his melee attack alternates between one wide attack and one thin attack. How did you make the wide attack?

1 Like

Makecode creates hitboxes accrete to the shape of a sprite’s animation. By changing the animation I use, I can change the shape and size of the Hammer’s hitbox. Here is some sudo code for blocks:

On start, set attackCycle to 0

On attack:

Increase attackCycle by 1

If attackCycle = 1 then
Animate Uppercut (Wide)
Else if attackCycle = 2 then
Animate Side cut (Thin)
Else if attack = 3
Animate Smash (Wide)
Reset attackCycle to 0
End

Yeah, but how do you make the animations actually do something? Do you send invisible wider projectiles for the wide attacks and thin ones for the thin attacks?

1 Like

I have different animations for each variation of the hammer’s attack. The enemies take damage when they overlap with the hammer.

1 Like

WHY DO YOU KEEP MAKING SUCH PEAK GAMEs

2 Likes

I just noticed that the name is a palindrome. :sweat_smile:

2 Likes

Thank you.

1 Like