GMLscripts.com

Discuss and collaborate on GML scripts
Invert

You are not logged in.

#1 Script Submission » Draw point of specified size » 2021-02-03 03:42:59

Jacko
Replies: 2

should be self-explanatory, point size expands from center

Expand/// @func   draw_point_size(x,y,size)
///
/// @desc   Draws a point of the specified size
///
/// @arg    {real}    x,y         position
/// @arg    {real}    width         width of point in pixels, real
///
/// GMLscripts.com/license
{
	var _x, _y, size
	_x = argument0;
	_y = argument1;
	size = argument2;

	draw_rectangle(_x-(size/2),_y-(size/2),_x+(size/2),_y+(size/2),false);
	return 0;
}

Board footer

Powered by FluxBB