People who are advanced in the path gain the power to become invisible whenever they wish to. Again, this is a matter of consciously manipulating how the pieces of an object—such as the color and outline of one's own body—are organized into that object by the mind. And this can be done only if the correct seeds have been planted. And this can be done only if one has been good to others: good enough to see them not see you, if that could help them.
We should say here that not everyone who possesses powers such as invisibility necessarily fully understands where they come from, how to keep them, or how to use them to help others. Sometimes a miracle may happen to us simply because of some old good seeds suddenly ripening—but if we don't understand the process, we can't repeat it.
People who meditate very regularly, even if they only use meditation to “space out” for a while, may temporarily gain a few powers. This is because, in any deep state of meditation, we simply cannot commit the negative actions and thoughts toward others that keep us from these powers.