Hi, i started working on a project in which an baby walked towards a fire and you had to use a button in order to move the baby back to the original position. the trouble is i dont know how to the baby and all my previous coding only moved the button instead of the baby. this is the coding for the button:
if(Greenfoot.mouseClicked(this))
{
setLocation(549, 214);
}
im not sure if i should put the coding in the part for the baby or the button. any help would be phenomenal. thanks