Code Editing Tutorials
Changing the speed of doors open & close

This tutorial is more Basic than Advanced, but it's very unknown in the community so I placed it here :D. The same's with next Kuki's tutorial. Okay, let's get to work.

Step 1. Open WL_ACT1.C

Step 2. In function void_DoorOpening (int door) there's written:

position += tics<<10;

Change the number '10' to number from 0 to 10. When the number's higher, the door will open faster. If the number will be higher than 15, the doors won't open at all.

Step 3. In the same file, in function void_DoorClosing (int door) there's written:

position -= tics<<10;

Rule is the same as above, but now we are changing the door close speed.




Get back to the Dome tutorials
Jump to the top