The Physics – Treadmill object moves the objects that enter its area of influence, at a steady and constant pace in the chosen direction. This object is perfect to create treadmill or elevators in a platform game.
The Properties
- Angle
This property contains the direction of the treadmill. If you choose more than one direction in the selector, one direction between the selected ones will be chosen at start of frame. - Speed
This property changes the speed of the treadmill. The higher the value, the faster the objects will move when they enter its area of influence. - Active at start
Check this property, and the treadmill will be active when the frame starts. If it is un-checked, you can start the treadmill from within the event editor with the “Start treadmill” action. - Advanced
- Engine ID
This property is designed to be used if you drop more than one Physics – Engine object in your frame. Enter the Engine ID value of the engine you want to use for this object.
- Engine ID
The Conditions
- Is treadmill active
This condition is true when the treadmill is currently active.
The Actions
- Set treadmill ON/OFF
Starts or shuts down the treadmill. A parameter different from zero will turn the treadmill on, 0 will turn it off. - Set speed
This action allows you to change the speed of the treadmill. It expects a value between 0 and 100. - Set angle
This action enables you to set the angle of the treadmill. The parameter is expressed in degrees (0-360). - Set width
This action changes the width of the area affected by the treadmill. - Set height
This action changes the height of the area affected by the treadmill.
The Expressions
- Treadmill speed
Returns the current speed of the treadmill. - Treadmill angle
Returns the current angle of the treadmill, in degrees (0-360) - Action zone width
Returns the current width of the action zone of the object. - Action zone height
Returns the current height of the action zone of the object.