Scratch for Java

MapObject::getPropertyInt()

This works in a project you run on your own computer, but not in the examples you can start here in the browser. There is no file system, no video encoder and no OpenGL behind a web page, so calling it there tells you as much and does nothing.

Retrieves the value of a property with the specified name and converts it to an integer.

Syntax

Java

.getPropertyInt(name)

Parameters

Name Data Type Description
name String the name of the property to retrieve

Return

int

getPropertyInt()

Create Shareable URL

Select Sections