A downloadable asset pack

Download NowName your own price

What is this?

After developing a ton of fighting game and action game prototypes, and answering hundreds of questions about both, I've decided to release this project. This project aims to help you understand how hitboxes and hurtboxes work, how to set them up, and how to manage them.  There are also tons of helpful game dev tidbits scattered throughout the project. 

What's in the box?

  • Examples of hitboxes for 4 different weapons, each with 3 attacks
  • Fully featured animation control system
  • Frame data management
  • Player character state machine
  • Basic platformer-style collision system
  • Easy to manage and expandable code base
  • Sprites and code for 4 individual weapons
  • Fully commented code
  • Basic implementation of screen shake, and hit stop

Does this work with GameMaker Studio 2?

Yes it does. When purchasing this project you now gain access to both a GMS 1.4 version, and a GMS 2 version.

What if I only want the sprites?

Buy the asset pack and you can download the sprites in a rar. 

What if I don't want to buy your project!?

Watch the tutorial video I made with Amazon and do it yourself. 

https://www.youtube.com/watch?v=NbOVd4ycZkg&feature=emb_title

StatusReleased
CategoryAssets
Rating
Rated 4.5 out of 5 stars
(11 total ratings)
AuthorRat Casket
GenreFighting
Made withGameMaker
Tagsfighting-game, GameMaker, gamemaker-studio, Indie, Multiplayer, Pixel Art, sourcecode, Tutorial
Average sessionA few seconds

Download

Download NowName your own price

Click download now to get access to the following files:

Hitboxes Project.gmz 59 kB
Hitboxes Project GMS2.yyz 240 kB
Sprites Only 41 kB

Development log

Comments

Log in with itch.io to leave a comment.

(+1)

I still come back to this tutorial from time to time.

However, the game speed is busted with modern versions of GameMaker.

Not really a proper fix but you can place the line:

game_set_speed(60, gamespeed_fps);

in the "god" object create event to make it work again...

Forgive me if I'm missing something, but is the 'test' room in the pack playable by two players? If not, what would be involved to make it two player? 

This is awesomeness! Any chance of renaming the individual sprites to proper frame-ordered names instead of hex codes, and having them in a single folder for each type (sprDagger_Attack_Down_A for example)? It's a bit confusing right now...

Hi! This is nice, but do u know any tool to import PNG and being able to get the coordinates by clicking with mouse? I have tons of frames to do and just checking coordinates with mouse and writing is a pain :)

hi, can i ask you: in your asset, enemy can attack character or just idle and hit?

Multiple attacks are in there for each weapon.

Hi, just want to re-confirm. Can we use a purchased asset to more than one game?

Or it just licensed as a single product (one license for one game only).

(+2)

Do whatever you want, man.

wow that's great thanks!

Здесь есть пример комбо системы, 2-3 удара?

(1 edit)

Is it possible to just purchase the sprite animations? I'd love to be able to use them for a prototype I'm working on. Need a character that can attack with multiple weapons. I've purchased the pack already, just looking for the sprites themselves outside of GameMaker.

(1 edit)

yeah you can buy the sprites for 5 dollars, and it comes with all of the code. i added a sprites only download option.

Awesome. Thank you!

(-1)

hey,  uh......which language you use for writing the code for this? i'm thinking about applying this to Unity Engine will that work? 

(+1)(-1)

this is written in Game Maker so youd have to do some translation

Deleted 4 years ago
(+6)

a wise man once said

get money get paid

Deleted 1 year ago
(+1)

Oh I think maybe this is an oversight on my part. 

In the create event of the god object, add this line

camLock = 0;

Deleted 1 year ago
(-1)

I'm having trouble understanding what this is, is it a tutorial or a tool?

Could I use this to define hitboxes for a spritesheet and output a data file for my non-GameMaker engine?

This is a bunch of code that you can use to learn how to do hitboxes and hurtboxes in an easy to manage way.

so it's a tutorial, then. Thanks for the speedy answer

Deleted 1 year ago
(+15)(-2)

damn I wish I had 5 dollars :(

(-1)

it used to be free...

i got it for free while it was still free.

(+4)

right on homie

Wait what why?????

temporary sale 

(-1)

how customizable is this. i’m working on my own platform fighting game rn. and can’t get the physics right. i have a lot of specific features i would need for this and i don’t know if it’s possible for me to add them myself??

(+2)

What If I just want to buy the sprites?....

(+6)(-1)

that will be 5 dollars my man

(+1)

Already paid for pack but sprites are non-accessible unless I have GM2 so "Oh Well" I guess.

(1 edit) (+1)

i added sprites only in a rar. enjoy.

(-1)

Can you please port this to the Godot Game Engine?

(+8)

I cannot. But you can!

Absolutely fantastic.  Are there any newer updates? 

I like how payment is optional in itch.io. I probably wouldn't have any acess to this gem otherwise. Good work

(+1)(-1)

cool pack

(+2)(-5)

I love this, and i would pay a good amount of money if it was expanded a little more:

- double jump

-directional block

-attack combo 

-run attack

-inventory

(+15)(-6)

you mean if i just made a whole game for you? yeah you definitely would pay a good amount for that.

Really nice asset to learn from. If you're looking for suggestions on things to add, perhaps combo attacks and directional blocking (block facing the opposite way to attack would take damage) could be worthwhile?

(1 edit) (+2)

Thanks a lot for this! I hope few bucks I send you, hopefully I this can help out to continue doing this kind of content! Cheers!

Thanks amigo!

Paypal: "We can't process your payment right now, so please try again later. We're sorry for the inconvenience." Tried several times and I use this account to make successful payments frequently.

This happens so often with itch.io payments. I wonder what's up with that.

Any chance there's some documentation with this to help guide me through what's happening?

I will be releasing some documentation soon.

Great! I'm looking forward to it :)

Here is a blog I wrote about this a little while ago. It isn't exactly the same as what it is in the project file, but its pretty close. https://developer.amazon.com/blogs/appstore/post/cc08d63b-2b7c-4dee-abb4-272b834...

Thanks a lot! I'll read it over :)

(+1)

Do you have plans to add your custom Hitbox editor?

Yes I do! I haven't had time to finish it recently. If you've already bought the project before it gets added,  you'll still get access to the hitbox editor.