Awesome
<p align="center"><img src="https://user-images.githubusercontent.com/19487451/167883263-e96a9e7f-973c-4714-ad47-01253b2db670.png"></img></h1> <h1 align="center">3️⃣.2️⃣</h1>Welcome to the outline-shader-drawer for GameMaker Studio 2.3+ repository!
This shader is based on a Version of @JujuAdams, credits to him for the basic implementation to draw a sprite outlined. He helped me in implementing varying outline strengths, and I took over from that point.
The shader now offers rich functionality and supports even drawing of rotating sprites, by using their bounding box to set up the surfaces needed to draw the correct outline and it also offers Alpha Fading
and Pulse animations
.
What is Alpha Fading and what is a Pulse Animation, you ask?? Well, pictures tell more than a thousand words:
No alpha fading | Active alpha fading |
---|---|
![]() | ![]() |
Pulse with strength | Pulse with color |
---|---|
Of course, those effects can be combined and you may create a strength + color
pulse!
With this shader you can create stunning outline effects when the mouse touches an object! Go, try it out!
How to use
First time users: Clone the repo and start the demo project
The repository contains a small demo project with a single room and some objects that will react on mouse_over with various outlines. There are some key bindings to alter the outline, let objects rotate, so you can see the surfaces correctly measure the real bbox of the outlined sprite, even when rotating.
The demo room will print the available key bindings on the screen, so just start it up and experiment!
Get the package
In the Releases section of the repository you can find a history of releases of this shader drawer.
The packge contains only the necessary files to be imported in your project.
When importing, a outline-shader-drawer
group is created in the root of your project. Move it to a location that fits your project best.
Find the documentation in the Wiki.
License: MIT (Contained in the repository)
Authors: Grisgram and Juju Adams
If you like what you see, ⭐ the repository and consider following me. The more reach the libraries get, the better they can evolve! Thank you!
Gris.
(c)2022-2023 coldrock.games
<p align="center"> In case you are a night owl like me and you want to support my work,<br/>especially the <a href="https://github.com/Grisgram/gml-raptor">gml-raptor platform for GameMaker</a>,<br/>spend me a coffee through PayPal. <p align="center"><a href="https://www.paypal.com/donate/?hosted_button_id=PL8VA5UFCPMK6" target="_blank"><img src="https://github.com/Grisgram/Grisgram/blob/main/images/paypal_donate.gif" /></a></p><p align="center">Thank you!</p> </p>