In an attempt to steal the six Chaos Emeralds and harness their power , the game 's antagonist , Dr. Ivo Robotnik , has trapped the animal inhabitants of South Island in aggressive robots and stationary metal capsules . The player controls Sonic , who aims to halt Robotnik 's plans by freeing his animal friends and collecting the emeralds himself .