Quote:
Originally Posted by AvalancheMaster
Question time!
I want to combine the Slide event in my level with Steady Light. I'm using Mez03, and I want the neon-tube-like animated platforms to light up in the dark. So far I have no idea how to accomplish that.
Also, while on the same topic, is there a way to change the "Illuminate Surroundings" parameter to act as a steady light, rather than Flickering?
|
I assume this is the only time you're using the Slide event? If that's the case, try the following script:
Code:
void onLevelBegin() {
for (int x = 0; x < jjLayerWidth[4]; x++) {
for (int y = 0; y < jjLayerHeight[4]; y++) {
if (jjEventGet(x,y) == AREA::SLIDE) {
jjOBJ@ o = jjObjects[jjAddObject(OBJECT::STEADYLIGHT, (x*32)+16, (y*32)+16)]; //lights go in the middle of tiles
o.light = 20;
o.lightType = 3;
}
}
}
}
Again, assuming there's consistency in the objects you're using illuminate surroundings on, you can set their light parameter to 20 and lightType to 3 to achieve the same result as above.
|