Simulation of an elevator

  • 19 years ago

    I am attempting to simulate an elevator that has 3 doors.  I am really confused as to how to code this.  I have used a Control Array for the buttons, but as for the timing of the movement of the doors up and down I am really confused.  ANY HELP would be greatly appreciated.  
    Thank YOU!!!!
    LMR

  • 19 years ago

    You would have to make several timers, and for movement each time one timer goes, make the left/top commands less or more then previously......So
    like (this would be in a timer) image1.top = 500
    image1.left = 450
    then the second timer
    image1.top = 550
    image1.left = 500
    something like that....someone else can probally explain without confusing you, i dunno if thats what your looking for.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Walking on water and developing software from a specification are easy if both are frozen.” - Edward V Berard