We already know that the method to get back the same number of objects left on the screen after a life is lost is: Start loop "Create object" number alterable value. Then: Set X ("Object") + (LoopIndex ("Create object") * 8). To go to new line reached a coordinate greater than x 200 (for example): Set X ("Object") + (LoopIndex ("Create object") - 208). And then Set Y position to Y ("Object") + 8
An example is Pac-Man: when the frame restarts after you lose a life, the same number of dots remaining and in the same positions reappear.
As long as there is only one frame for a player, the problem is solved by recreating the objects at the xy positions without restarting the frame.
But what method should be used to make sure that the remaining objects are repositioned in the same previous XY coordinate?
I know that the X and Y positions of each single object can be stored in an Array or in a Layer object.
Download the example here.
In the file.zip there is the complete game, and to give the idea, there is the example described above, named: "Loopindex create dots.mfa"
Note: the google chrome browser warns that the file may be threatening or recognizes it as a virus. But I tried to re-download it and checked it with the antivirus software and there is no threat, also because the files are made with the C.T.F. 2.5 original.