I'm wondering what code he used in order to accomplish this because i'd like to use it for my game as well.