SecondBASIC Documentation v3
Home
/
Command Reference
/
HideSprite
HideSprite
Description:
Sets the coordinates for <Sprite> to (0,0).
Syntax:
HideSprite <Sprite>
Part
Description
<Sprite>
Required. <Sprite> is the variable you prepared with
AddSprite()
.
Example
:
sprite = AddSprite(1,1)
PropSprite sprite,1,0
MoveSprite sprite,200,200
Print "Press A to hide, B to show"
While 1
j = JoyPad(0)
If j.6 Then
HideSprite sprite
End If
If j.4 Then
MoveSprite sprite,200,200
End If
Locate 1,1
Print SpritePosX(sprite); " ", SpritePosY(sprite); " "
Sleep 1
Wend