More draw functions for GameMaker
A downloadable script
A script that adds more draw functions to your GameMaker(2.3+) project.
More will be added later.
Guide:
● draw_shape( [x1,y1, x2,y2, x3,y3, ...] );
Draws a simple filled shape with no limitation on how many points you add.
Points must be in an array, meaning they go in [square brackets.]
Example: draw_shape( [16,16, 32,16, 32,32, 24,64, 16,32] );
● draw_circle_width(x, y, radius, precision, width);
Draws a circle's outline with a given width.
Precision must be 4 or higher.
!! ITS ALPHA WILL ALWAYS BE 1 !!
Example: draw_circle_width(x, y, 32, 8, 4);
● draw_spiral(x, y, curvature, resolution, turns, angle, width);
Draws a swirl/spiral, its center being x and y.
"Curvature" is the angle of how it will bend, increase to have higher density (can't be 0, but can be either a positive or a negative.)
"Resolution" aka. precision, increase to have a smoother result.
"Turns" is the number of many times will the wrap do a full circle.
!! ITS ALPHA WILL ALWAYS BE 1 !!
Example: draw_spiral(x, y, 200, 32, 2, 60, 32);
Additional:
○ array_median(array);
Returns the median of any given array.
This was only added to make some of the other functions work.
Example: array_median( [10, 30, 100] );
Status | In development |
Category | Assets |
Author | missMoonieh |
Tags | GameMaker |
Comments
Log in with itch.io to leave a comment.
i think this is so cool