Keywords

List of keywords supported by the D2Soft Engine. Most of them are inspired by the BASIC programming language. Click on a keyword in the list to learn more.

Keyword Description
_KEY Returns the key pressed on the keyboard.
_LANDSCAPE Returns true if the screen orientation is landscape.
_OBJECT Represents the object that called a SUB.
_PORTRAIT Returns true if the screen orientation is portrait.
ALPHA Sets transparency value of an object.
AND Boolean operator.
ANIM Animates an object.
BGCOLOR Defines the background color.
BUTTON Displays a button as an image with optional text.
CIRCLE Draws a circle.
COLLIDE Returns true if two objects are overlapping.
COLOR Changes the color of text or shape.
CONSOLE Adds logging information to the console.
CROP IMAGE Gets part of an image and use it as new image on screen.
DEBUG Enables debug details.
DIM Declares a variable.
DISABLE Disables an object for events.
DRAG Activates dragging of an object.
ELSE Optionally used with the IF keyword.
ENABLE Enables an object for events.
END IF Marks the end of a IF.
END PIXELART Disables pixel art style.
END SUB Marks the end of a SUB.
EVENT Generates a custom event.
FALSE Boolean constant.
FLIP Flips image upside down.
FRAME Frames an object within an area.
GROUP Defines a group of objects.
HIDE Hides an object.
IF Executes a statement or statement block depending on specified conditions.
IMAGE Displays an image on screen.
KEYBOARD Displays a keyboard on screen for user input.
LET Assigns a variable name to an object.
LEVEL Starts a level.
LINE Draws a line.
MAX WIDTH Defines a maximum width to text.
MIRROR Mirrors an image horizontally.
MOVE Move an object on screen.
MUSIC Plays a music.
NOT Boolean operator.
ON CLICK Executes a SUB on a click event.
ON COLLIDE Executes a SUB on a collide event.
ON DRAG Executes a SUB on a drag event.
ON EVENT Executes a SUB when a specified custom EVENT is generated.
ON KEY Executes a SUB when a key is pressed.
ON LEVEL Executes a SUB when a new level is loaded.
ON OVER Executes a SUB on an over event.
ON PRESS Executes a SUB on a press event.
ON RELEASE Executes a SUB on a release event.
ON RESIZE Executes a SUB when there is a change in screen orientation.
OR Boolean operator.
PARTICLES Displays an image for a particle effect.
PIXELART Enables pixel art style so that any image added following this statement will look blocky.
POSX Returns the X position of the specified object.
POSY Returns the Y position of the specified object.
QUIT Ends the execution of the current script.
RECT Draws a rectangle.
RELOAD Reloads current level.
REM Marks text as a comment.
RND Returns a random integer.
ROTATE Rotates an image by a specified angle.
SCALE Scales an object.
SET TEXT Update text of an object.
SET VOICE Defines a voice to use for text-to-speech.
SHOW Shows an object.
SLEEP Forces a delay of time.
SOUND Plays a sound.
START TIMER Starts a timer.
STOP ANIM Stops any ongoing animation on an object.
STOP DRAG Stops dragging of an object.
STOP MUSIC Stops the music.
STOP TIMER Stops a timer.
STR Converts an integer to a string.
SUB Defines a sub procedure to be called and execute parts of code.
TEXT Displays text on screen.
THEN Used with the IF keyword.
TIMER Starts a timer that execute a SUB.
TOP Puts object on top of all other objects.
TRUE Boolean constant.
VALUE Set or get a value to an object.
VISIBLE Returns true if the object is visible.
VOICE Turns text into natural-sounding speech (text-to-speech).
WAIT Forces all commands to be executed before any additional code is run.
ZONE Set an interactive rectangle that is not visible.