Keep moving forward and land eight hits on Eggman — the catch is that you have to do it without falling off the platform.
Stay centred, attack between his moves, and watch your footing more than anything else.