When I applied to some state schools, they asked to describe connections to the state. Your application will probably have to say resident for State 1, but in the secondary to state 2 you can hopefully describe your connections to that state you’ve just moved to.
Residency takes awhile to attain, and can depend on your purpose of moving to the state (educational or not, did you get a job etc). It also depends on how dependent, if at all, you are on your parents, their income, and their residency.