Table of Contents

Function Definition: changelayer(postition = "forward", layer_number = 1)

Parameters

NameTypeDescriptionExpected ValuesDefault Value
postitionstringThe direction in which layer needs to change."forward" or "backward""forward"
layer_numberintThe number by which the layer shift will happen.Integer1

Description

The function changes its sprite’s layer value by the specified amount. This function is rather unusual compared to other functions. It moves the layer value back, and not forward. To move it forward instead, a negative number can be used.

Example

There are no examples documented for this article.