Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Change hurtboxes

A topic by SSBF created 9 days ago Views: 35 Replies: 3
Viewing posts 1 to 2

how do I change the hurtboxes to beter match the charcter during certain actions like jumping or being knocked back? My idle sprites are allot taller than they are wide and when doing other actions they protrude way above and below were the character actually is.

Developer

You should be able to use `hurtbox_anim_match()` or directly set `hurtbox.sprite_index`.

Do i run those functions dirwctly in the fighters init scripts?

Developer

You'd need to run them in the state scripts or a passive script. If you only run them in Init, then it would only change the hitbox on the first frame of the game.