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); }
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.
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 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
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);
}
Gracias amigo!
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.
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
Proper and Full course of fullter flames.... Please provide me 😢😢...
My flutter & flame course is all in this playlist ua-cam.com/play/PL_D-RntzgLvYIxI_Kuwy1f7HedxTF2GPK.html
@@1ManStartup sir, please guide me... After learn this playlist I can become a good flutter game developer...
@@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
@@1ManStartup thanks Sir.... 🙏🙏...
@@1ManStartup I start playlist.. from today... 1 video daily and practice.