| face size | |
(face size:: extension) | |
| Category | Face Sensing |
| Type | Reporter |
| Introduced in | 3.0 |
The face size block is a Face Sensing block and a reporter block. The block returns the size of the detected face, if there is one. If no face is detected, the block will return 100 (the "default" size, as a size of 100% makes it appear the same size as the costume).
A face's "size" is defined as the number of pixels from the left to right edge. The face size block returns the same value regardless of the size of the sprite that is using it (or if it is used in the stage).
Workaround
This block can be replicated with the following code:
set [old size v] to (size) set size to face size :: extension set [face size v] to (size) set size to (old size)%