improvise
Definitions
To create, perform, or compose something spontaneously without prior preparation.
To make or construct something from whatever materials are available at the time.
Examples
When the lead actor forgot his lines, he had to improvise to keep the scene moving.
Since we didn't have a map, we had to improvise a route through the forest.