hide()

Function Definition: hide()

Parameters

NameTypeDescriptionExpected ValuesDefault Value

Description

If the sprite is showing, it will hide the sprite. If the sprite is already hidden, nothing happens.

Example

The example demonstrates the show and hides of the sprite in Python.

Code

sprite = Sprite('Tobi')
import time

sprite.gotoxy(0, 0)
sprite.setsize(200)

while True:
  sprite.show()
  time.sleep(1)
  sprite.hide()
  time.sleep(1)
Read More
All articles loaded
No more articles to load