Here 2 sprites are set. One is controlled by the Circle Pad input, and the other is controlled by the AI. The AI here is programmed to follow the player.