The is_sliding()
function returns a True
/False
value indicating if Gizmo is actively sliding.
sliding = is_sliding()
None.
The function returns a boolean:
True
if Gizmo is actively sliding.False
if Gizmo is not sliding.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.
is_sliding()
function becomes available at level 5 (UnlocksAtLevel: 5).is_sliding()
is useful to see if Gizmo is sliding on oil.