If I hide successfully the rulebook says that the enemy is flat-footed for an attack. But let's say the enemy is 10 ft away so that I would first go to it.
Action: Hide
Action: Move
Action: Attack
Would I lose my flat-footed advantage?
If I hide successfully the rulebook says that the enemy is flat-footed for an attack. But let's say the enemy is 10 ft away so that I would first go to it.
Action: Hide
Action: Move
Action: Attack
Would I lose my flat-footed advantage?
The Hide action has that:
If you successfully become hidden to a creature but then cease to have cover or greater cover against it or be concealed from it, you become observed again. You cease being hidden if you do anything except Hide, Sneak, or Step.
So if you move using a Sneak or Step action and have cover or concealment from them at the end of your movement (right next to them), then you would still be hidden and they would still be flat-footed to your attack.
Good ways to do this include fog/smoke or invisibility, though it may be better to just use a ranged attack in this situation.
Once you've become hidden, sneakng is the actual movement form that you would take. Page 252 of the Core reads,
You're undetected by the creature during your movement and remain undetected by the creature at the end of it.
Since you're still hidden 'at the end' of your movement, your target is still flat-footed when you attack.