Collision Detection In Flame Game

Sdílet
Vložit
  • čas přidán 27. 08. 2024

Komentáře • 11

  • @imorenodev2886
    @imorenodev2886 Před 2 měsíci +1

    at 5:26 I had to change the collision callback from onCollisionStart to onCollision in order to get the player to disappear only when it reaches the bin position.y
    @override
    void onCollision(Set intersectionPoints, PositionComponent other) {
    if (other is Player && other.position.y > position.y) {
    other.removeFromParent();
    }
    super.onCollision(intersectionPoints, other);
    }

  • @joseeduardopenarebollo7537
    @joseeduardopenarebollo7537 Před 3 měsíci

    Gracias amigo!

  • @hardiklakhalani6268
    @hardiklakhalani6268 Před 15 dny

    I was expecting resizing hitbox instead image scale up. Is it possible to have multiple hitbox? I want to detect object closing up with another padded hitbox & one trimmed hitbox for actual collision.

    • @1ManStartup
      @1ManStartup  Před 15 dny +1

      Yes, you can have a hitbox on any/ all objects. As the series progresses several others are added with different outcomes czcams.com/play/PL_D-RntzgLvYIxI_Kuwy1f7HedxTF2GPK.html

  • @AshuTyagi-c1b
    @AshuTyagi-c1b Před 12 dny

    Proper and Full course of fullter flames.... Please provide me 😢😢...

    • @1ManStartup
      @1ManStartup  Před 12 dny

      My flutter & flame course is all in this playlist czcams.com/play/PL_D-RntzgLvYIxI_Kuwy1f7HedxTF2GPK.html

    • @AshuTyagi-c1b
      @AshuTyagi-c1b Před 12 dny

      @@1ManStartup sir, please guide me... After learn this playlist I can become a good flutter game developer...

    • @1ManStartup
      @1ManStartup  Před 12 dny

      ​@@AshuTyagi-c1b It'll be a good start, it shows how I built lastbottle.app although a few of the finishing touches in style, localization, and the google wallet integration aren't covered in the videos. But all the code is available on my Github.
      Being a good game developer requires a lot more than just programming, this is an insightful book I'd recommend to learn a bit more about user psychology as it relates to mobile apps/ games www.amazon.com/Irresistible-Addictive-Technology-Business-Keeping/dp/1594206643

    • @AshuTyagi-c1b
      @AshuTyagi-c1b Před 12 dny

      @@1ManStartup thanks Sir.... 🙏🙏...

    • @AshuTyagi-c1b
      @AshuTyagi-c1b Před 12 dny

      @@1ManStartup I start playlist.. from today... 1 video daily and practice.