So I\'ve been trying to make a sprite object (called heart) that can be moved around by players on the JPanel "Battle box". Very similar code has worked for me in