There are a lot of houses out there that feature attic space. It can be used in different ways and creating a bedroom there is just one of them.
Here is an attic bedroom done in bright orange and white colors. The main feature here is how the wardrobe section is hidden. Instead of using sliding or folding doors, four-pane textile panels were used. They are sewn from fabric and hung on the two strings located at some distance from the ceiling and with minimal padding to each other. You can use similar idea in any other room in case your space is at a premium but you still wanna separated zones in one room.