Set the object's width to the number of tile width's specified.
widthByTile (Numberval, BooleanlockAspect)
NumbervalNumber of tiles.
BooleanlockAspectIf true, sets the height according to the texture aspect ratio and the new width.
Returns * The object this method was called from to allow method chaining.
Set the width of the entity based on the tile width of the map the entity is mounted to
// Set the entity width to the size of 1 tile with
// lock aspect enabled which will automatically size
// the height as well so as to maintain the aspect
// ratio of the entity