Making a block move only up and down?

I have a spike object the has a animation so it spins without the “Movable” physic. How do the object so it moves up and down while it has the spinning animation?
Here is the game…

Thats easy as long they are set as NOT movable.
Use Y velocity, to move them up and down. You can also add real rotation if you wanted to.

With animation: (Timer: 10 w/repeat forever)

With Rotation: