There's a lot more you'll have to take a look at, but if you add touchobject is overlapping platform1 under system rotate is 1 only one platform is turning.
Instead of making rotate a global variable maybe it would be better to make it a variable of platform1, that would start making the events easier.