Is Sliding

Description

The is_sliding() function returns a True/False value indicating if Gizmo is actively sliding.

Syntax

sliding = is_sliding()

Parameters

None.

Return

The function returns a boolean:

  • True if Gizmo is actively sliding.
  • False if Gizmo is not sliding.

Examples

Here's an example of how to use the is_sliding() function:

print("Waiting until Gizmo has stopped sliding...")

# Use a while loop to wait until it is false
while is_sliding():
    pass

print("Gizmo has stopped sliding!")

This example demonstrates how to use is_sliding() to pause code execution until sliding has finished.

Notes

  • The is_sliding() function becomes available at level 5 (UnlocksAtLevel: 5).
  • The is_sliding() is useful to see if Gizmo is sliding on oil.