The function will place a sprite in front of all other sprites. It does this by changing the sprite’s layer value.
gotolayer()
Function Definition: gotolayer(postition = "front", layer_number = 1)
- Python Library: Looks
- Library Import: sprite = Sprite("Sprite-Name")
- Mode: Stage Mode
Parameters
| Name | Type | Description | Expected Values | Default Value |
|---|---|---|---|---|
| postition | string | The direction in which layer needs to change. | "front" or "back" | "front" |
| layer_number | int | The number by which the layer shift will happen. | Integer | 1 |
Description
Example
There are no examples documented for this article.
- Scratch Based Default Extensions
- Artificial Intelligence
- Innovative Extensions
- Machine Learning Environment
- Quarky
- Quarky Intellio I2C Communication
- Quarky Advance Sensors Extension
- Quarky Connect
- Display (Quarky)
- Quarky (Main)
- Robot (Quarky)
- Sensors (Quarky)
- Speaker (Quarky)
- Quarky Ultimate Robots
- Quarky Expansion Board
- Mars Rover
- Humanoid (Quarky)
- Quadruped (Quarky)
- IoT House (Quarky)
- Quarky Mecanum
- Quarky Robotic Arm
- Dabble
- Quarky Advance Line Following
