Table of Contents

Function Definition: gotolayer(postition = "front", layer_number = 1)

Parameters

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

Description

The function will place a sprite in front of all other sprites. It does this by changing the sprite’s layer value.

Example

There are no examples documented for this article.