How did you make the fan-shaped hitbox
Sorry, what are you referencing?
I am making a sequel of my game:
I’ll share you the topic link later.
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?
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?
I have different animations for each variation of the hammer’s attack. The enemies take damage when they overlap with the hammer.
WHY DO YOU KEEP MAKING SUCH PEAK GAMEs
I just noticed that the name is a palindrome. ![]()
Thank you.
