Hello, i'm making a 4-directionnal top-down game and my character has swing animations that include a sword. Im struggling to use Pin properly AND use a specific frame of my animations as an event. I'm basically trying to make the sword have a hitbox on a singular frame of the whole animation. Theres a swing animation for 4 directions so 4 different frames that need a hitbox.
Any pointers on how to refer to a specific animation and how to pin an invisible sprite on top of the sword would be appreciated.
Ive already tried using image points created on the specific attack frame to no avail as I cannot find them in the "Pin to image point" action.
Heres a link to what I have so far.
drive.google.com/file/d/1uc772Qb4e5b8jG9szB1iDLVCOUOGg3X8/view
I think I understand. If you want the sword to only have collision on a certain frame, simply say:
Sprite/Compare Frame = 4,
Then Sprite/Set Collisions Enabled
System/Else
Then Sprite/Set Collisions Disabled
Develop games in your browser. Powerful, performant & highly capable.
Although I ended up using animation frame tags, your advice worked as intended.
Thanks for the help!