im trying to make a grid of moving platforms that stop when they meet up with each other.
it looks like this
column 1 and 3 have a period of 5 and a magnitude of 250
column 2 and 4 have a period of 10 and a magnitude of 500
both have "stop" as an instance variable
if "stop"=0 ----> set sine inactive, wait 1 second, set "stop"=1
if "stop"=1 ----> set sine active, wait 5 seconds, set "stop"=0
instead of moving 5 seconds, stopping 1 second, moving etc. It moves and then stutters. the rest of the game runs smooth, but the platforms do not.