🔴Homing methods [Game Maker Studio 2 | Advanced]

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

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

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

    The "sin(degtorad)" part was the thing that I tried to do for hours.
    Thanks a lot!

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

      You are welcome mate, happy coding!

  • @m77mdsd3
    @m77mdsd3 4 года назад +5

    that's so awesome!
    i was looking for a homing bullet that move smoothly and use direction!
    thank you a lot!

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

      Me too to be honest, I had some experimental versions (for the slowed version) but they all were twitching for some bs reason. But this one is solid!

  • @theblackkoopa2329
    @theblackkoopa2329 4 года назад +2

    Thanks for the vid. Your commentary has improved quite a bit from the old videos :D

    • @1upIndie
      @1upIndie  4 года назад

      Oh yeah, ... the old videos... let's pretend I never made them :D

  • @sazerae
    @sazerae 2 года назад +2

    you have saved me many times from stress when coding, i owe u a sub :)
    just thanks for the content, always that guy who helps!

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

      Indeed. Thanks for the trust!

  • @Toxic-hd1ck
    @Toxic-hd1ck 4 года назад +2

    Again, a good one...gj m8

  • @TjmDr
    @TjmDr Год назад +1

    Good Tutorial

    • @1upIndie
      @1upIndie  Год назад +1

      Thanks for watching!

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

    Great. Thanks mate :)

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

      Ah snap, forgot to mention you.... So yeah, this video is for Valeria The Pagan Priestess!

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

      @@1upIndie
      When the projectile sprite finishes, I will upload a video and I will give you credits. Thanks my friend

  • @RogerontheKeys
    @RogerontheKeys 3 месяца назад +1

    thank you!!!

    • @1upIndie
      @1upIndie  3 месяца назад

      Your welcome!

  • @twitchy.mp3
    @twitchy.mp3 6 месяцев назад +1

    im trying to learn with drag and drop and I really want a bird to swoop into the scene and steal a seed based on an alarm and can't figure out how to tell the crow I want its direction to be any existing seed :(

    • @SafetyKitten
      @SafetyKitten 5 месяцев назад +1

      I know it's not very helpful to say, but don't use drag and drop! there's way less content out there and way less people to help with it, along with it being in some cases kinda harder to use. In general it's especially not worth it the more complicated things get!

    • @twitchy.mp3
      @twitchy.mp3 5 месяцев назад +1

      @@SafetyKitten I eventually got my solution for the bird but like you said drag and drop is kind of complicating things Im afraid but Idk how to do normal code :(

  • @mr.provalone
    @mr.provalone Год назад +1

    a problem i had with this is that when the object is created, it goes left. is their any way to fix this?

    • @1upIndie
      @1upIndie  Год назад

      Hm, did you try to give it a start direction that is going where it should be?

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

    how to I make it home in to the closest of multiple types of enemies?

    • @1upIndie
      @1upIndie  2 года назад

      You can use instance_nearest.
      manual.yoyogames.com/GameMaker_Language/GML_Reference/Asset_Management/Instances/instance_nearest.htm

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

      @@1upIndie and use a parent thingy yeah (sorry im new to this).
      I tried that with the parent thingy (which is an empty object placed outside of the room but it doesn't want to lock on to the child where the enemies were linked so i had to go for this for now
      if instance_exists(obj_EPopcorn1) {
      var near = instance_nearest(obj_PShip_DD.x, obj_PShip_DD.y, obj_EPopcorn1);
      var target = point_direction(x, y, near.x, near.y);
      if image_angle != target {
      image_angle += 1;
      }
      move_towards_point(near.x + 100, near.y + 150, point_distance (x, y, near.x + 100, near.y + 150) / 16);

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

    Obrigado (Thanks) 👍🏻

  • @FriskDreemurr66669
    @FriskDreemurr66669 10 месяцев назад +1

    plz teach how to make it avoid walls

    • @1upIndie
      @1upIndie  10 месяцев назад

      I am not sure what you mean by avoid walls. You mean like platformer jumping mechanics/topdown collisions? Then just look up these keyword and you will find tons of videos.

    • @FriskDreemurr66669
      @FriskDreemurr66669 10 месяцев назад

      i mean moving around walls and still being able to find the target without touching the walls

    • @1upIndie
      @1upIndie  10 месяцев назад

      @@FriskDreemurr66669Ah, you mean path
      finding. Well, I made videos on that topic:
      ruclips.net/video/RmOqnp5d33Q/видео.html
      ruclips.net/video/UZhLV13HAno/видео.html
      ruclips.net/video/gqzsBhb7ov4/видео.html
      Hope that helps!

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

    Hey 1up, It is good that you can already monetize, keep it up.

    • @1upIndie
      @1upIndie  4 года назад +2

      Thanks but that is pityfully low, I average on 20 bucks a month. It took me 2 years, 220 videos...

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

      It is a lot of effort for so little.

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

    Do you know how to create sonic physics?

    • @1upIndie
      @1upIndie  4 года назад

      What are sonic physics? A 2D sidescroller? A 3D like you saw on the dreamcast? A racing game??

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

      uh there is a tutorial by SingleShotGamer that i used

  • @posthuman2716
    @posthuman2716 3 года назад +1

    Not working, because missing information

  • @fisheggs9666
    @fisheggs9666 Год назад +1

    math