VirtualButtonImageUp

Family: Input · One form

What it does

VirtualButtonImageUp writes a value: it sets rather than reads. It takes index (an integer) and imageID (an integer), and returns nothing.

Syntax

VirtualButtonImageUp(index integer, imageID integer)

Parameters

NameType
indexinteger
imageIDinteger

Every form returns

nothing

Example · generated

image = LoadImage("assets/sprite.png", 1)VirtualButtonImageUp(1, image)DO  Sync()LOOP

LoadImage is there to give the call something to act on; VirtualButtonImageUp is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

95 commands in Input