Scratch for Java

Actions::getAxis()

One direction from two opposite actions, e.g. getAxis("left", "right") for walking.

Syntax

Java

.getAxis(negative, positive)

Parameters

Name Data Type Description
negative String the action that counts down to -1, e.g. "left"
positive String the action that counts up to 1, e.g. "right"

Return

double

getAxis()

Create Shareable URL

Select Sections