GameMaker How To Key Combo Special Moves

Поділитися
Вставка
  • Опубліковано 8 вер 2024
  • GameMaker tutorial / lesson with completed project files at www.gameprogram... in the RESOURCES section.
    How to code key combos and combinations so that the player can do special moves when a series of keys are pressed in the correct order.
    Check out hundreds of other GameMaker tutorials and lessons at GameProgrammingCourse.com
    All these gamemaker tutorials will work with Gamemaker Studio GMS or Gamemaker Studio 2 GMS.
    Go to the Resource Page of www.gameprogram... to download the Project Files for these tutorials!

КОМЕНТАРІ • 17

  • @crystalkornn1296
    @crystalkornn1296 7 років тому

    I know this was a year ago from my perspective, but I'd like to thank you for this tutorial. Every other tut I found on this subject, didn't explain anything. So thank you.

  • @Visionsofmortality
    @Visionsofmortality 9 років тому

    No comments so far? Man...
    I found this video to be amazing, really. First of all, you're teaching something really useful, which lots of games use, so we can implement it too in to ours. Second thing, you are explaining it in detail and so well, every little bit so we can understand everything in the code. And it comes within a very nice short code, which is always better. These videos are really good, keep at it, I can't believe you don't have more subscribers.

  • @marunoise9518
    @marunoise9518 9 років тому

    Yes Sir Thank you! You are the only channel I've found that talks about anything fighting game worthy.
    Fantastic man very comprehensible.

  • @finleysayer6382
    @finleysayer6382 7 років тому

    The like to dislike ratio kinda explains how good this video is...

  • @RoryStarks
    @RoryStarks 8 років тому +3

    Made a slight adjustment to the script that I think helps make it a tad more responsive. I changed this conditional:
    // increase time if keys in log
    if (length>0) {
    time_total += time_step;
    }
    to this:
    // increase time if keys in log
    if (length>0) {
    time_total += time_step;
    } else {
    time_total = 0;
    }
    I was having a problem where the time_total would end up being something between 0 and my time_remove, which meant that it would sometimes remove the first character in the string too soon. Works a lot better now.

  • @prowokator
    @prowokator 8 років тому

    I hope you keep doing these! Very good and no nonsense tutorials!

  • @sirisaac8727
    @sirisaac8727 9 років тому +1

    Its so much better with actual titles

  • @HEXUS9292
    @HEXUS9292 8 років тому

    Tnx dude! this tutorial saved me alot of time! Well explained.. Great tutorial! Love it!

  • @shoden
    @shoden 9 років тому

    So easy and nice combo system. Great explanation and teaching skill. ^^
    Keep up the good work.

  • @jintor9061
    @jintor9061 6 років тому +1

    Fantastic vid! I have two questions - how would you make this read inputs with an xaxis/yaxis on a gamepad, for instance? And secondly, is there a way to modify the combo system to act more as an 'input buffer' for commands?
    Thanks!

    • @gamemakergameprogrammingco4786
      @gamemakergameprogrammingco4786  6 років тому +1

      The joystick axis is another layer on top of this code. With keys it is easy since a keypress is a distinct event that takes place. You would have to write code that detects where the joystick is (access its x and y axis values). If you decide that the joystick was in the appropriate range to be considered 'left', then you could send it to do the code as if the left key, or "A" key was pressed. Then you would probably want to make sure they return the joystick close to the center position before accepting another direction/key. A good practice of this would just be trying to code reading the joystick directions between joystick centering. Once you get that, you can tag it with this code.

  • @sonicrocks2007
    @sonicrocks2007 8 років тому

    How would this work with gamepad or other keys like enter or space?

  • @nosh247
    @nosh247 8 років тому

    how do you integrate iif a key connected (hit the enemy) for example?

  • @waziammm
    @waziammm 8 років тому +1

    You said you wouldn't normally code this in the player, where would you do it?

  • @kalele60
    @kalele60 6 років тому

    Mortal kombat 101