You need to do the above as a sub-event in "On Start of Layout" so it only happens once when the layout begins.
[Event] On Start of Layout
[Subevent] System.Repeat Platform.Width / 100
[Action] System.Create Star at (Platform.X - Platform.Width / 2 + loopindex * 100)