User Tools

Site Tools


Module for built-in classes and other integral features of Doomsday Script.


importPath ()

Returns the currently effective search path for imported Doomsday Script modules. The return value is an array:

[ , /modules, /home/modules, /data/net.dengine.stdlib.pack/modules, /data/
  net.dengine.stdlib.gui.pack/modules, /data/net.dengine.client.pack/modules ]


setValue ( Number|target, Number|span = 0, Number|delay = 0 )

Starts a new animation from the current value to target. The transition to the new target value will take span seconds. If delay is not zero, the transition will wait delay seconds before starting, however the delay time is considered to be included in span so increasing the value of delay does not change the transition span time, and the maximum delay is equal to span.

uEmission.setValue(1, 1)

setValueFrom ( Number|fromValue, Number|toValue, Number|span, Number|delay = 0 )

Starts a new animation from fromValue to toValue. The current value of the animation is discarded before starting the animation. The transition will take a total of span seconds, and will start after delay seconds has passed. In the following example, an animation is started from 1 to 0, with the duration of 0.9 seconds. For the first 0.5 seconds, the value remains at 1, after which it transitions in 0.4 seconds to 0.

uEmission.setValueFrom(1, 0, 0.9, 0.5)

target ( )

Returns the target value of the animation.

value ( )

Returns the current value of the animation. If the animation is not ongoing, this is the same as the target value.





script/module/core.txt · Last modified: 2017-03-13 12:38 by skyjake