With framed shapes you can easily draw ngons and rectangles with a frame. The frame and body do not overlap wich makes it possible to use alpha or draw to surfaces with premultiplied alpha.
Creation scripts are:
With the creation-scripts you can create a shape by setting:
For ngons you can additionally set:
For rectangles you can additionally set:
For rounded shapes you can additionally set:
Drawing scripts are:
With the drawing-scripts you can draw any previously created shape and set:
Deletion scripts are:
With the deletion-scripts you can:
You can download the executable demo here
Framed Shapes uses d3d-functions. If you want to export to HTML5 you need to enable WebGL in the Global-Game-Settings.
Version 1.0.1. Published June 10, 2015
Created with GameMaker: Studio v1.4.1567
This asset hasn't received enough reviews yet.
You can only review assets you've bought.
Works really well for what I need
My only complaint is that there are references to globalvariables such as tip_down but these vars are never assigned anywhere so I have no idea what the values are.