Put both sprites in your backpack, and transfer the code by replacing the scripts they are supposed to take