The problem was in the Solid Object sprite. I added a new sprite specific variable "change" to know when the platform should change direction. The og code didn't have it so the platform couldn't keep moving after the direction changes in the code. Having Repeat Until blocks in a Tick also doesn't help.