🔴Game Maker Studio 2 | Basics - Bounce or pong way to easy

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ต.ค. 2024

ความคิดเห็น • 28

  • @NasuNanu
    @NasuNanu 2 ปีที่แล้ว +8

    Thank you so much, I spent 2 hours trying to figure out how I could get something like this to work and you saved me ahhh thank you thank you!

  • @joshuamcmillan6390
    @joshuamcmillan6390 11 หลายเดือนก่อน +2

    Been forever since I used Game Maker. Last I knew, it had a drag and drop function for that. Thanks for providing the same function!

    • @1upIndie
      @1upIndie  11 หลายเดือนก่อน

      You are welcome!

  • @spookytrav5752
    @spookytrav5752 4 ปีที่แล้ว +4

    Thank you so much, ive been trying to figure this out for so long!

  • @DariGamesTM
    @DariGamesTM 2 ปีที่แล้ว +2

    you jsut helped me so much with this, i was about to give up a very important feature in my game cuz i didnt find a good solution bevore your video

    • @1upIndie
      @1upIndie  2 ปีที่แล้ว +1

      Sweet! Glad I could help out there.

  • @enkiimuto1041
    @enkiimuto1041 5 ปีที่แล้ว +5

    loved the graphics of your game.
    Also nice brief tutorial =)

  • @TapeYTP
    @TapeYTP 4 หลายเดือนก่อน +1

    How do you make bouncing balls disappear after a bounce?

    • @1upIndie
      @1upIndie  3 หลายเดือนก่อน

      instance_destroy();

  • @L...673
    @L...673 2 ปีที่แล้ว +1

    Ty

  • @nicolasvalverdetorres3866
    @nicolasvalverdetorres3866 4 ปีที่แล้ว +2

    Thank you bro

  • @hamzaahmed7913
    @hamzaahmed7913 5 ปีที่แล้ว +3

    how ican make the bullet bounce gust 3 times please i need your help

    • @1upIndie
      @1upIndie  5 ปีที่แล้ว +2

      Well, you need to do a few things here:
      1. Setup a bounce variable in the bullet -> bounce = 3;
      2. Then check for theoretical collisions with your wall object (because you don't really collide) in its step event, and if there is one substract from the bounce.
      if (place_meeting(x+1, y , obj_wall) { bounce = bounce -1; }
      if (place_meeting(x-1 , y + 1, obj_wall) { bounce = bounce -1; }
      if (place_meeting(x, y + 1, obj_wall) { bounce = bounce -1; }
      if (place_meeting(x, y - 1, obj_wall) { bounce = bounce -1; }
      3. Any bounces left? If no, then -> if (bounce < 0) { instance_destroy(); }

    • @JorisCoutelier
      @JorisCoutelier 2 ปีที่แล้ว

      @@1upIndie Hello, I followed what you put in your comment, but there seems to be an error because the software shows me an error on the first line, is something changed because of the version of gamemaker?

    • @1upIndie
      @1upIndie  2 ปีที่แล้ว +1

      @@JorisCoutelier Hm, not that I would be aware of. But this video is, well a not optimal way to do the bouncing. Better try this ->th-cam.com/video/hTPHzHM2KQ0/w-d-xo.html and think of it as a bullet.

    • @JorisCoutelier
      @JorisCoutelier 2 ปีที่แล้ว

      @@1upIndie thank you, i solved my problem, your video helped me a little to think, in the end the problem was just me x)

  • @1upIndie
    @1upIndie  ปีที่แล้ว

    If that video was too confusing or lacking of infos, check out a more detailed one:
    th-cam.com/video/hTPHzHM2KQ0/w-d-xo.html

  • @betadyne9559
    @betadyne9559 4 ปีที่แล้ว +1

    the solid state for objets is severely bugged :( I get objects being stuck mi air before collision when I enable this option :(

    • @1upIndie
      @1upIndie  4 ปีที่แล้ว +1

      Well, then go the "medium" route and try without solid objects -> th-cam.com/video/ssFfG0qEyW4/w-d-xo.html
      Hopefully that helps.

    • @betadyne9559
      @betadyne9559 4 ปีที่แล้ว +1

      @@1upIndie Thanks, but whatever you say in the video is completely wrong. Boucing isn't adding + degrees the your direction. I want realistic bounce, which means if I impact at 20° angle, it should bounce at 160°. Boucing takes a normal vector then sets the angle according to that, this is not what you show in this video.

    • @1upIndie
      @1upIndie  4 ปีที่แล้ว

      @@betadyne9559 Well in that case, how about you make a video that does that thing right and share it will all of us. So everybody wins!
      I have a correct angle in my video for bouncing lasers -> th-cam.com/video/LQvD8PcGHPs/w-d-xo.html. So if you want the "realistic one", take that approach.

    • @betadyne9559
      @betadyne9559 4 ปีที่แล้ว +1

      @@1upIndie Perhaps I'm here to find a solution, but yours doesn't ?

    • @mh1593
      @mh1593 ปีที่แล้ว +1

      @@betadyne9559 if you want "realistic" bounce then you need to factor in the friction co-efficient of the material being bounced against as well as the shear effect of the rotation of the bouncing particle. You are very unlikely to get a "realistic" bouncing simulator on a 2D developer platform without putting in some serious mathematics

  • @_dense
    @_dense ปีที่แล้ว +1

    omeggachad

  • @retropulse03
    @retropulse03 ปีที่แล้ว +1

    ... I'm confused, this didn't explain anything on how this works.

    • @1upIndie
      @1upIndie  ปีที่แล้ว

      Not my best video, my bad. Here is a video that shows you all in detail:
      th-cam.com/video/hTPHzHM2KQ0/w-d-xo.html

  • @PrimitiveAspid
    @PrimitiveAspid 2 ปีที่แล้ว +1

    That _was_ fast

    • @1upIndie
      @1upIndie  2 ปีที่แล้ว

      Yup, hope that helps!