Collision Detection In Flame Game

Поділитися
Вставка
  • Опубліковано 15 жов 2024

КОМЕНТАРІ • 11

  • @imorenodev2886
    @imorenodev2886 3 місяці тому +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 4 місяці тому

    Gracias amigo!

  • @hardiklakhalani6268
    @hardiklakhalani6268 2 місяці тому

    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  2 місяці тому +1

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

  • @AshuTyagi-c1b
    @AshuTyagi-c1b 2 місяці тому

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

    • @1ManStartup
      @1ManStartup  2 місяці тому

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

    • @AshuTyagi-c1b
      @AshuTyagi-c1b 2 місяці тому

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

    • @1ManStartup
      @1ManStartup  2 місяці тому

      ​@@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 2 місяці тому

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

    • @AshuTyagi-c1b
      @AshuTyagi-c1b 2 місяці тому

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