* Start of level
- Destroy "light"
- Start loop "makelight" NObjects("torch") times
- Spread value 0 in Value A of "torch"
- Spread value 0 in Value A of "light"
* On loop "makelight"
- Create "light" at (-300, -300)
* Start of level
- Start loop "lights"
* On loop "lights"
* Value A of "light" == LoopIndex("lights")
* Value A of "torch" == LoopIndex("lights")
- Light: Set position to (0,0) relative from "torch"
Keep in mind that the actions/events have to be placed in that particular order. The third event needs to be kept separate from the first, due to an MMF bug. You can also position the "light" objects using this code:
* Start of level
- Light: Set position to (0,0) relative from "torch"