melee attack

  1. G#m_Player2

    GMS 2 Problems with Melee Attack after killing enemy and enemy (2)

    Hello GameMaker Community, I recently have a problem in my melee attacks. I watched Shaun spalding's melee attack tutorial together with my other knowledge with his other videos about attacking enemies and parent objects but I may still have a lack of coding knowledge and I want to learn more...
  2. D

    Collisions with DnD

    Hey lads, I'm developing a basic DnD platform tutorial and I was wondering if there was a clean way to handle collisions without using the SOLID option in DnD. With script, it's much cleaner with if (place_meeting...), but I have no idea how to do this in DnD. Also, how would you guys handle...
  3. M

    GMS 2 Need Some help with a unique melee attack

    Im trying to make an attack where a spear move forward then backwards, aiming towards the mouse. the spear is a separate object to the player, it is meant to move towards the mouse then once it has move a set distance return back to the player similar to shaun spaulding's pokey poke melee...
  4. Sargonnas

    GMS 2 [Solved] Combo Attack malfunction

    Hello! I'm making a side-scrolling action game, and my current problem is in performing combo attacks in melee. I come to you after many versions and several nights of no progress, and will be relieved / annoyed if the solution is super simple. After many failed iterations, the following code...
  5. DonMaklesso

    Speeding up melee attacks (help)

    Hi guys! I've been making a rogue-like game and stopped on player's melee attacks (I use hitboxes which damages enemies on contact). Everythings fine until I speed up those attacks by percentage amount of player's missing health (the less health, the faster attacks). So I've added the amount of...
  6. G

    Forum Game Game in Development

    https://igg.me/at/projectplatformer/x/19057534
  7. J

    GMS 2 Having knockback issues with my 2D platformer

    v2.1.3.189 My game (loosely based on "Beowulf") has a character who can press 'x' to swing his sword. This creates my (obj_sword_hitbox) in front of the "obj_player" for a single frame. When the (obj_sword_hitbox) collides with (obj_enemy_parent), I want to create a knock-back effect on the...
  8. Sarena

    GMS 2 [SOLVED] Hit Box only works when moving

    I set up a sword weapon that will create a hit box that decreases the enemy's hp when colliding with it. Everything works correctly except the placement of my hit box is a little weird. When my player is standing still, the hit box will appear on top of the player. When my player is moving, the...
  9. Sarena

    GMS 2 [SOLVED] How to animate a weapon when attacking?

    I managed to get my sword weapon to work correctly in regards to function, but whenever I attack, it only shows the first frame of my animation instead of playing through all 8 frames. Here is the code I have in regards to the sword in my objPlayer's Step Event: // Sword Attack // If...
  10. B

    Legacy GM Two questions about jumping and melee attack.

    Hi guys! Last step of my game! I am making a 2-player game in which they can punch each other. I have coded 2 objects, each stand for a player, named obj_player and obj_player2. They are the same except for the input keys. The problem is when player 1 attacks player 2, he receives the damage...
  11. B

    GMS 2 How to make collision masks and deal melee damage?

    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...
  12. U

    Melee attack only works while moving? (solved, but I don't know how)

    So, I'm using a modified version of Heartbeast's movement engine and some other tutorials adapted to fit into the system. I followed Shawn Spalding's melee tutorial, and for the most part, it works. The problem is that when I hit the attack key, the player switches to the first frame of the...
  13. newtinn

    Free POW

    SO I made this game called POW a few months ago and I kinda forgot to post it here. Also forget about clayzie kings because I won't work on it like ever again - it was terrible. Anyway, this was my first commercially presentable game and I have had some fun playing it with my brother. There are...
  14. S

    Legacy GM Need help figuring out how to make something work.

    At the moment, I'm making a little test game--a super basic side scroller-- just to learn the basics of coding. I have a room, a player character (obj_player) that can walk left and right, a chest that I can "open" (really just made it so that when I press a button the animation changes makes it...
Top