Wolf3d Haven Forum

Please log in or register. Smile

Join the forum, it's quick and easy

Wolf3d Haven Forum

Please log in or register. Smile

Wolf3d Haven Forum

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Wolf3d Haven Forum

A friendly Wolfenstein 3D community, about Wolfenstein 3D, the game that gave birth to first person shooters...


    changing speed doors open and close

    Dark_wizzie
    Dark_wizzie
    I am Death Incarnate!
    I am Death Incarnate!


    Female
    Number of posts : 5120
    Age : 30
    Location : California, USA
    Job : Investor
    Hobbie : Computers, chess, computer chess, fashion, and philosophy
    Message : I made this forum when I was 13 High on Drugs
    Registration date : 2007-03-24

    changing speed doors open and close Empty changing speed doors open and close

    Post by Dark_wizzie Sun Apr 29, 2007 1:52 pm

    dome




    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 Very Happy. 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.

    Thankyou.




    Wolf3d Haven
    Minute Logic Blog

      Current date/time is Wed Oct 30, 2024 7:06 am