GameMaker How to make collision masks and deal melee damage?

B

BlueKitsune

Guest
Sorry if this sounds like a really stupid question i haven't been using GMS2 for very long but i can't find a tutorial for this anywhere since most of them use ranged attacks.

So basically i want the damage system to be completely in the enemy's favour, where the player does about 1 dmg and the enemy does something like 9999, but the player would have a 2% crit chance where they could win. I have the math.random code for the crit chance but I'm completely clueless when it comes to how to set up the collision mask and deal the actual damage.

The player would have about 5-10 npc allies that would die from the same enemy attack so that part would probably just be like a magic attack but a guide for the melee stuff would be greatly appreciated. ^_^

Let me know if you needed any more info!
 

Simon Gust

Member
It's pretty much like a ranged attack except it doesn't move around. It stays for a duration and is destroyed once it hits something. A square basically that appears in front of the attacker.
 
Top