Arguments: 1) real: slowTarget 2) real: fpsValue
Creates a pseudo slow effect by forcing Danmakufu to run at the specified FPS value.
There is currently only one target available, TARGET_ALL.
Use StopSlow to stop this effect.
Arguments: 1) real: slowTarget
Removes the pseudo slow from StartSlow, and restores Danmakufu to normal FPS.
There is currently only one target available, TARGET_ALL.
Arguments: 1) real: startX 2) real: startY 3) real: endX 4) real: endY 5) real: width 6) real: xCoord 7) real: yCoord 8) real: radius Return Type: bool
Checks if the given line with given width is colliding with the given circle of given radius.
Returns true if there is a collision; if there is no collision, it returns false.
Arguments: 1) real: objID1 2) real: objID2 Return Type: bool
Checks if the given objects are colliding with each other.
Returns true if there is a collision; if there is no collision, it returns false.
Note: This function is currently only available on bullet and laser objects.
Arguments: 1) real: objID1 2) real: objID2 Return Type: real array
Returns the distance between the two objects.
If one of the objects' ID is invalid, -1 will be returned.
Arguments: 1) real: objID Return Type: real array
Returns the 2D coordinates of a 3D object projected onto the 2D window.
The array is returned as [X, Y].
Arguments: 1) real: x 2) real: y 3) real: z Return Type: real array
Returns the 2D coordinates of the given 3D coordinates projected onto the 2D window.
The array is returned as [X, Y].
Arguments: 1) any array: arr 2) real: index Return Type: any array
Returns a new array with the element at the given index in the provided array removed.
Arguments: 1) any array: arr Return Type: real
Returns the size of an array.
Arguments: 1) any array: arr1 2) any array: arr2 Return Type: any array
Concatenates the two provided arrays (of same type) and returns the new array.
Function version of ~.
Works on strings, as they are character arrays.
Arguments: 1) any array: arr 2) real: start 3) real: end Return Type: any array
Cuts out a specific portion of an array.
Function version of array[start..end]. Sliced portion includes start but not end.
Arguments: 1) real or any: array length or element1 2) any: ... (varargs elements) Return Type: any array
Creates an array of the specified length if argument count is 1, otherwise create an array with the given elements.
Note: This function has a variable number of arguments.
Arguments: 1) table: table 2) string: key 3) any: value Return Type: any array
Inserts the given key value pair into the given table.
Arguments: 1) string: functionName 2) any vargs: functionArgs
Calls the given function or task with the given args.
The called function will not be able to return any values.
Note: Do not use with subroutines (sub
)
Arguments: 1) any array: arr Return Type: real
Returns the logical negation of the provided boolean expression.
Function version of !.
Arguments: 1) real: index 2) any varargs: args Return Type: real
Returns the value at the given argument index.
Can pass as many values as needed.
Note: This function will raise an error if the index is out of bounds.
Arguments: 1) real const: interpolationType 2) real: startValue 3) real: endValue 4) real: timeRatio Return Type: real
Interpolates between startValue and endValue by timeRatio using the given interpolation type.
Note: timeRatio must be a value between 0 and 1.