From what I understand this is what you are trying to do. Let me know if something needs changing or you don't understand the coding.
Downloads: 88 - Level ID: 2250