Make a cursor change size

image
How can I go from having a cursor like this in my game (yellow) ^
image
To moving and changing size to this square?^