Events
On start game
Returns path on start program
Input: -
Output: path
On load scene
Returns path on load scene
Input: -
Output: path
Every N frames
Returns path every N frames
Input: N
Output: path
Every N ticks
Returns path every N ticks
Input: N
Output: path
Mouse right click
Returns path on mouse right click
Input: -
Output: path
Mouse left click
Returns path on mouse left click
Input: -
Output: path
Keyboard click
Returns path on click the button
Input: button
Output: path
Keyboard press
Returns path while press the button
Input: button
Output: path
On button press
Returns path and button ID on button press
Input: button
Output: path, object ID
Loops
For N times
Inputs path, count of cycles, delay in seconds between cycles
Returns iterator (path that is called every cycle), index of cycle, path after cycles
Input: path, N, X
Output: iterator, index, after
For objects group
Inputs path, object group
Returns iterator (path that is called every cycle), ID of object, path after cycles
Input: path, group
Output: iterator, object ID, after
For list elements
Inputs path, list
Returns iterator (path that is called every cycle), index of element, element, path after cycles
Input: path, list
Output: iterator, index, element, after
For dict elements
Inputs path, dict
Returns iterator (path that is called every cycle), key of element, element, path after cycles
Input: path, dict
Output: iterator, key, element, after
Text
Connect text
Inputs path, first text, second text and returns sum of this texts
Input: path, text, text
Output: path, text
Slice text
Inputs path, text, start index and end index
Returns text starts with start index and end with end index
Input: path, text, start, end
Output: path, text
Write text
Write text in console
Input: path, text
Output: path
Display text
Display text on X, Y in this frame
Input: path, X, Y, text
Output: path
Numbers
A + B
Returns A + B
Input: path, A, B
Output: path, answer
A - B
Returns A - B
Input: path, A, B
Output: path, answer
A * B
Returns A * B
Input: path, A, B
Output: path, answer
A / B
Returns A / B
Input: path, A, B
Output: path, answer
Radians
Returns radians from degrees
Input: path, degrees
Output: path, radians
Degrees
Returns degrees from radians
Input: path, radians
Output: path, degrees
Sin
Returns sin from radians
Input: path, radians
Output: path, answer
Cos
Returns cos from radians
Input: path, radians
Output: path, answer
Tan
Returns tan from radians
Input: path, radians
Output: path, answer
Ctg
Returns ctg from radians
Input: path, radians
Output: path, answer
Absolute of number
Returns absolute from number
Input: path, number
Output: path, answer
Logic
If
If condition true return true path else false path
Input: path, A, condition, B
Output: true path, false path
If collision
If object collision group return true path and object id else false path
THE ID OF THE OBJECT WITH WHICH THE COLLISION IS CHECKED MUST BE DYNAMIC!!!
Input: path, object ID, group, consider only intersection as a collision
Output: true path, false path
If key in dict
If key in dict return true path and object id else false path
Input: path, dict, key
Output: true path, false path
If element in list
If element in list return true path and object id else false path
Input: path, element, list
Output: true path, false path
Objects
Get object ID by name
Return object ID by name
Input: path, name,
Output: path, object ID
Set object pos
Set object pos for object by ID
Input: path, object ID, X, Y
Output: path
Move object
Move object for object by ID by angle with power
Input: path, object ID, angle, power
Output: path
Move object with braking
Move object for object by ID by angle with power and braking power
Input: path, object ID, angle, power, braking
Output: path
Get object pos
Returns object position
Input: path, object ID
Output: path, X, Y
Set object var
Set object variable for object by ID with name and value
Input: path, object ID, name, value
Output: path
Get object var
Returns object by ID variable value by name
Input: path, object ID, name
Output: path, value
Create object
Create object by name and position and returns object ID
Input: path, name, X, Y
Output: path, object ID
Remove object
Remove object by ID
Input: path, object ID
Output: path
Get resulting vector
Returns resultings of all vectors in object by ID
Input: path, object ID
Output: path, X, Y
Get object parameter
Returns object parameter by object ID and parameter name
Input: path, object ID, name
Output: path, value
Set object parameter
Set object value of object parameter by object ID and parameter name
Input: path, object ID, name, value
Output: path
Get all objects in group
Returns list of all objects in group
Input: path, group
Output: path, list
Jump
Imitate jump for object by ID with power
OBJECT MUST BY DYNAMIC!!!
Input: path, object ID, power
Output: path
Animation
Run animation
Run animation for object by ID and animation name
Input: path, object ID, name
Output: path
Stop animation
Stop animation for object by ID
Input: path, object ID
Output: path
Mirror animation
Mirror animations for object by ID vertically and horizontally
Input: path, object ID, horizontal, vertical
Output: path
Another
Set var
Set variable value by name and globality variable
Input: path, name, global, value
Output: path
Get var
Returns variable value by name and globality variable
Input: path, name, global
Output: path, value
Random
Returns random number from A to B
Input: path, A, B
Output: path, answer
Decode holder
Decode text holder to value
Holders:
- %math(expression) -> return answer on this expression
- %local_var(variable) -> return value of local variable
- %global_var(variable) -> return value of global variable
Example:
- let: local variable abc = 1
- %math(%local_var(abc) + 2) -> 3
Input: path, text
Output: path, answer
Len
Returns len of object, if object type is not dict or list return 1
Input: path, object
Output: path, len
Exit
Close project
Input: path
Output: path
Python
Running code in function "run" with args = list, kwargs = dict
What will be returned via return in code will be returned to the list output
A more detailed guide can be found in the Programming tab
Input: path, code, list, dict
Output: path, list
Function
Initializate function with function name, on call return path and getted list
Input: function name
Output: path, list
Call function
Call function by name with list value
Input: function name, list
Output: path
Get mouse pos
Returns mouse position
Input: path
Output: path, X, Y
Passed framef time
Returns passed time - count ms for update frame
In this example player will be moving identifically for any value of FPS
Input: path
Output: path, passed time
Go to scene
Go to scene by name
Input: path, scene
Output: path
Get scene name
Return scene name
Input: path
Output: path, scene
Wait
Wait N frames
Input: path, time
Output: path
Break
Break from the cycle
Input: path
Output: -
Set
Add list element
Returns list with new element
Input: path, list, element
Output: path, list
Get by index
Returns element of list by index
Input: path, list, index
Output: path, element
Delete by index
Returns list without element by index
Input: path, list, index
Output: path, list
Get index of element
Returns index of element in list
Input: path, list, element
Output: path, index
Slice list
Returns list starts with start index and end with end index
Input: path, list, start, end
Output: path, list
Add dict element
Returns dict with new element by key
Input: path, dict, key, element
Output: path, dict
Get by key
Returns element by key in dict
Input: path, dict, key
Output: path, element
Remove by key
Return dict without element by key in dict
Input: path, dict, key
Output: path, dict
Get key of element
Returns key of element in dict
Input: path, dict, element
Output: path, key
Music
Play music
Play music by name with volume
Input: path, name, volume
Output: path
Stop music
Stop music
Input: path
Output: path
Play sound
Play sound by name with volume
Input: path, name, volume
Output: path
Experimental
Get noise value
Return value of Perlin noise in X, Y
Input: path, seed, X, Y, min, max, octaves, frequency, amplitude, lacunarity, persistence
Output: path, value