How do I: Aim using the mouse? (2d)

Поделиться
HTML-код
  • Опубликовано: 31 дек 2024

Комментарии • 9

  • @valegory
    @valegory 2 года назад

    I really appreciate the code organization in this tutorial. So many tutorials on youtube completely ignore proper project organization and just show you how to get it to work as quickly as possible. I learned a lot from watching how this project was managed in this tutorial, way more than just how to do mouse aiming.

    • @GameMakerCasts
      @GameMakerCasts  2 года назад +1

      Thanks, it drives me insane some of the videos online with horrible coding standards :D Being a full time developer the standards are there for a reason :P
      I am glad you liked the video

  • @pauldolton9118
    @pauldolton9118 5 лет назад

    Hi,
    At 8:06; I've not seen this function before "alarm_set". Usually I would set the alarm by doing alarm[0] = %numner%. I think it works the same, but I will use your method from now on. Thanks for this new bit of knowledge :)

    • @GameMakerCasts
      @GameMakerCasts  5 лет назад +1

      You can definitely use both. The alarm_set was introduced in GMS 2 and I just feel it makes more functional sense. :)

  • @lilyhop4447
    @lilyhop4447 5 лет назад +2

    What is the game maker theme you are using ?

    • @GameMakerCasts
      @GameMakerCasts  5 лет назад +1

      Haha, I was wondering when I was going to get asked that :D I am using Dracula by Tonystr found at github.com/tonystr/Dracula

  • @MartyScorchedEarthse
    @MartyScorchedEarthse 4 года назад

    Hi, I’m thinking of making a game’s view is not completely top down like in your demo or hotline miami but it’s more like Zelda where you can see the full character instead of just head and shoulders. How do you make it so the character’s sprites change to the mouse position?

    • @GameMakerCasts
      @GameMakerCasts  4 года назад +1

      So like this www.patreon.com/posts/43516698

    • @MartyScorchedEarthse
      @MartyScorchedEarthse 4 года назад

      @@GameMakerCasts Yes something like that! You see, I really like what hotline miami did where you can aim and look anywhere you want with the mouse and strafe but the straight top down view where it’s just the sprite being rotated looks really cheap to me, and I want something more detailed like the character you showed on your link. But I was wondering if it’s possible to do 360° omnidirectional as opposed to just 8 directions.