Glad you got that all sorted out, machrider
I guess should have been more specific before and saved you the trouble. But yeah, that's exactly how I did my jack-in-the-box enemies in LHiT.
Perhaps I should scrap bits and pieces out of that game and make a series of mini-tutorials instead of having everything in one big .cap. It could also use some updating, as it's five months old. Hell, it even had obsolete code for back then, I think it was version 0.92 or something.