• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

attack

  1. C

    Gamepad input is not working well with attack directions

    Hello! I'm making a top down game with 8 directions. Everything, including movement, works well with the gamepad and keyboard alike. I have a system set up to change the direction of the player based on WASD or the gamepad left thumb stick, which works fine. I also have attack combos set up in...
  2. Richcraftplays

    GameMaker making player move to correct area at right time

    I need help I used a tutorial I found on here for textboxes, but can't figure out how to move the player to the selection area after it, need then back to the box I can not find the tutorial again, so how would I do it,
  3. V

    GML My animation shoot and attack doesn`t working

    My sprites either stay in a loop or trigger too quickly and you can barely see them. animation attack #region ATTACK if key_attack { sprite_index = spr_attack if (image_index >= image_number-1) { sprite_index = spr_idle } } #endregion animation shoot #region TIRO var flipped...
  4. crunchymonkey

    GML Player attack state not playing full animation

    Hi, I have a player object that goes into the main attack state of my game with the "Z" button. I'm having issues with the sprites, in that sometimes it will play the full animation for the attack, and sometimes it will not. And while the player is moving in a diagonal, it will not play the...
  5. K

    GameMaker Problem with collision when player attack

    So, I'm using this code to detect whenever the player hit an enemy or entity with the attack animation and for that I'm using a precise collision mask and using mask_index to change the mask when the player use the attack animation. function playerAttack(){ var entityOnHitbox =...
  6. G

    Can i have 2 diffrent styles of games in 1 game??

    Hi everyone is it a possibility to have 2 diffrent games in 1 game. For example I want a pvp and a platform game in 1 game for a school project. Is this possible?
  7. Gonzaga

    GML StateMachine problem: Can't punch when walking diagonally

    Hello everyone, Problem Description: 1. When my character walks diagonally, it can only attack when walking in 2 out of the four diagonal directions. 2. If attack key is held down and the attack animation ends but any other key is pressed after that, then my character attacks which is not...
  8. F

    How to make a platformer attack?

    I am quiet new to gamemaker 2,and I personally dont know anything about implementing a attack,I will add my code bellow,can anyone show me how to add attack to a enemy,and also play a animation of the attack? oPlayer create event: spd = 4; xSpeed = 0; ySpeed = 0; oPlayer step event: var...
  9. Z

    GML MADE A SWORD SWING SCRIPT

    Hello Everyone! I made a swing animation for Melee Attacks BUT it isn't very versatile when it comes to changing direction, I am currently having a hard time making it versatile CREATE VARIABLES melee_state = 0;//Counter Current Anim Number melee_timer = 0;//Animation Timers melee_anims =...
  10. P

    Fighting game - Players get "stuck" on ground after implementing hitlag

    I'm stumped on this problem. After I implemented hitlag, when a player uses a specific aerial attack and land on the ground while the attack is still out (and the other player was it), they transition to idle state as intended. But then if you try to move left or right, while you still go into...
  11. P

    SOLVED Trying to display one sprite followed by another in same state

    Hopefully this is simple, I don't want to spam the forum with questions... So i've got a state engine and need a couple of states to run multiple sprites. This works ok for jump where a different sprite is running for upwards movement to the downwards movement sprite (if/else) statement. I'm...
  12. G

    How to make enemy(walking,attack)

    I'm making ma first game(2d platformer) in GMS language,i don't know how to make enemy to walk to player and attack him,pls help me
  13. F

    Change direction attacking

    My character when attacks, he turns only to the right. I can't make he turns to left and attack looking to left while walking. He turns if he's stopped, but if he's not, the animation change to the right. if keyboard_check(vk_space){ sprite_index=character_Attacking_Right;image_speed=1; }...
  14. Z

    GML Trouble with Enemy Attack Sprite Manipulation

    I have just completed the wonderful GML2 Complete Platformer Tutorial series by Shaun Spalding on Youtube. The code is identical to how he set up his simple shooter, I have just changed the art and little details and values here and there, and everything works! However, my enemies do not have...
  15. D

    Attack State Animation Will NOT End

    Hi guys. So I've set up a simple attack state using a switch statement, but two things occur and I can't for the life of me figure out why. 1. Upon pressing the attack button the attack animation continues to play, but it does transition to my move state and allows me to move like normal and...
  16. FoufaDjo

    GameMaker [SOLVED] attack (hit) player multiple time by diffrent other players att the same time!

    so am creating a topdown 2v2 game and i found my self stuck on the dmage system. right now i have diffrent controls for the same hero and all 4 players play the same hero so its the same object. the player can knockback multiple other players but the player that got hit cant be targeted by...
  17. M

    Legacy GM Help With a Script

    I'm trying to make a chain lighting attack, by making the "bullet" jumping to the next target (max 3), but I think I'm making in the bad way. Here is the script in the bullet //Create target = ds_list_create(); ds_list_add(bersagli, "obj_enemy"); ds_list_add(bersagli, "obj_enemy")...
  18. Alexir

    GML Wave type attack?

    I'm trying to make a wave type effect, where an invisible object is created, shot in a direction, and every set time increment a different object spawns on top it, which is the actual attack, creating a trail of attacks. To give you an idea of what I was trying to do here is my code that is not...
  19. T

    Attack states

    Hello, how can I enable single button combo attacks into this? Any help much appreciated. Thanks, Lionel
  20. M

    Legacy GM Make only one sound effect play?

    In my game, I have it so a sound is played when it gets hit which works when only one enemy is hit. But if there are multiple enemies hit at once, it plays the sound effect for each of them, causing a super loud hit sound. Is there a way to make the sound effect play once for all of them? if...
Top