For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to Change the Mobile Interaction Button

You can customize the mobile interaction button by using App.loadSpriteSheet.

Note: The size of the mobile button image is 180 x 180 px.

// let button_image = App.loadSpritesheet("button_image.png");
let button;
App.onStart.Add(function () {
        // add button
        button = App.addMobileButton(8, 145, 75, function (player) {
        App.sayToAll(`${player.name}, has tapped the button.`)
	});
	
	button.image = button_image;
	button.sendUpdated();
});
Example of the Updated Mobile Button

Last updated