Hi, Lydia,
My ideas come from plain old hard work, and a lot of thinking and plotting. No big mystery; it’s just work. I think it up, expand on it, plan it in some detail, and then write it. My books sometimes (okay — often!) differ from the original plan, but never in a meaningful way. That is, I can add and subtract characters and events, but the basic plot from beginning to end always remains true to my original plan. A healthy way to write, by the way. I honestly believe that nobody ever wrote anything good by making it up as he/she goes along. Planning is everything.
Good to hear from you again. Keep on writing! —-Gordon Korman—-