ClsEx

Last Modified: 12/31/2020

Clears the planes A and B of all tiles.

Example

Syntax: ClsEx
    For y = 0 To 27
        For x = 0 To 39
            DrawTile 1,x,y
        Next
    Next
    Sleep 50
    ClsEx

Remarks

Using this command will set the text plane to Scroll_A after being called. If you were using a different text plane, you'll need to use SetTextPlane to set the plane back to Scroll_B or Window.

This does not clear the screen of sprites or clear the Window plane. If you need to clear the screen of sprites, please consider using FreeAllSprites. If you need to clear the Window plane, or just a single plane, you can use SetTextPlane followed by Cls

See Also

Cls, SetTextPlane, FreeAllSprites