how to change the way of logging in

I currently logging in using my Google account and I want to change that to logging in using a username and password. Can someone tell me how, is this even possible? I don't want to lose my purchases

Thnx!