From the Super Mario Wiki
Retrieved from "https://www.mariowiki.com/index.php?title=Melon_Bug&oldid=2319230"
They bounce up and down, but when Yoshi gets too close, they roll up into balls, which resemble melons. If Yoshi gets close enough, he can eat them and then spit them out, causing them to roll across the ground, destroying any enemies in their path.
Names in other languages