Dealing damages

Hacking and dealing damages
Run for it !

Retro-Progress-7 – Hit boxes

Slashing with a sword is fun but it is even better when you can actually deal damage. So I created a hitbox system, with specific children objects for swords attacks, hazard blocks, explosions and projectiles. It might be overkill for my game, but I have a full set of features ready to define who can be hit by who (to manage friendly fire), track who has hit who (to credit experience for instance), decide if attack go through wall or not etc… So everything within my game will rely on this system to deal damages.

To credit someone I discovered only recently, I would name Nathan Ranney; I had great fun reading his posts on amazon developer blog, and the fact that his codes work like a charm does not hurt. Here is the link to find his article on hit boxes and combos. https://developer.amazon.com/fr/blogs/appstore/post/9a4ded48-625a-42aa-8f15-ac608155b8aa/gamemaker-basics-combo-setup1.

Published by michelvgamemaker

solo hobbyist game maker at night...tired dad at day. Falled into programming and table top RPG at 10... Happy to share and discuss

Leave a comment

Design a site like this with WordPress.com
Get started