If you're still on the 1st island and you have the map, you can use that to teleport. Otherwise I don't know how'd you get out. Where did you get stuck? If you're stuck in that scary house, it's meant to do that and you can find a way out pretty easily.