You could do something like, make it so that, when the spike hits a certain x/y coordinate, the v/hspeed of the spike is 0.
I have a much better solution, but can't remember it off the top of my head atm. I might post the code later today if I remember.