Collisions between moving objects

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

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

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

    Very nice tutorial on basic collisions, but as you said in the end those 2 "bugs" are a pain to fix and I haven't found the optimal way to address it. I am looking foward to a more advanced collision handling video!

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

    Man ,your chanel is amazing .
    I watch you from Africa

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

      Me too. Nigeria to be precise 😉

    • @YNightmareT
      @YNightmareT 10 หลายเดือนก่อน +2

      How? you have no internet 😂😂😂😂

  • @JohnnyGrateful
    @JohnnyGrateful ปีที่แล้ว

    Such a great video. Thanks for being the guy who teaches me collisions! Appreciate it all!

  • @JaguarWisdom-9
    @JaguarWisdom-9 ปีที่แล้ว

    Thank you. My movement method is only linear up, down, left, right. I deployed your collisions function and my sprite is no longer a ghost!

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

    0:32 That moment that the red block just phases through the green block as it's being pushed by the blue block. I too have this issue with multi collision

    • @subarunatsuki1902
      @subarunatsuki1902 ปีที่แล้ว

      Do you found a solution?

    • @WingMaster562
      @WingMaster562 ปีที่แล้ว

      @@subarunatsuki1902 I'm still working on my collisions and pathfinding. Kinda went into many phases.
      But for that specific part, I realized that it was described in 16:58 and 51:54 The issue is when an object is being sandwich by two objects, the latest one overrides the other.
      What I did from this point on was "true collision" instead: From the original position, move an entity. If there is collison with anything: Move Back to the original position then reset Velocity to 0

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

    Thank you so much for this tutorial of such a topic so hard to find. I have been studying this topic for a long time and I had come to, more or less, your same conclusions, although less simply than your brilliant solution. However, I needed to be assured on how to order the object update and draw operations and you helped me a lot about that. Unfortunately I don't use Pyton as a programming language and I miss the implementations of the PyGame library, in particular those on sprites and collision detection between them. It would be particularly interesting to understand how to resolve bitmap collisions between transparent sprites and not just filled rectangular ones, for example. I hope one day you will want to make a tutorial about this too.

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

    You save my life with this tutorial :D

  • @amirkarataev4266
    @amirkarataev4266 20 วันที่ผ่านมา

    41:02 'So we have a basic collision mechanic' 😆😆😆

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

    Amazing!

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

    That's why this is a good channel
    Thanks
    Just tell me can i make fruit ninja with pygame

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

    Please make a video tutorial on how to create an isometric game, thanks!

  • @furykool
    @furykool ปีที่แล้ว

    I implemented this in my project and it works well but it isn’t as springy as with static and moving object collision. The player gets slowed when moving in certain areas. Is that just lag or is it fixable?

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

    Hey, absolutely love your work. Do you know of or have any videos which use the built in vector class in Pygame? I think it’s really powerful but can’t find any videos on it. Thanks.

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

    Hi Chris, nice job explaining collisions. Would using Munk be more effective?

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

    Hey can you plz do a video series on KivyMD
    Thanks

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

    What's that IDE? I'm using Pycharm but the colors doesn't match

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

      I believe it's Sublime Text Editor, I recall him saying something about Sublime in another video. It's a great IDE, give it a try.

  • @MarcosVinicius-kn8cz
    @MarcosVinicius-kn8cz 6 หลายเดือนก่อน

    sou brasileiro e amo seus videos

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

    Real nice...
    ✅✅✅✅✅

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

    Btw, have you ever made a chess game in Python?

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

    I am the 525th person to see this video!

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

    666 subscribers

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

    Algo

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

    Im first again?

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

    This is bug filled are you going to go more in depth?