Drawing sprites skewed!

draw_sprite_skew(sprite_index, image_index, x, y, hskew, vskew);
draw_sprite_skew_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha, hskew, vskew);

Draws a sprite skewed around it's origin.

The functions take the same form as the usual draw_sprite and draw_sprite_ext with the addition of hskew and vskew.
hskew is the horizontal skew. Positive numbers skew the sprite to the right.
vskew is the vertical skew. Positive numbers skew the sprite down.

The skewing is done using primitives. This means it will not work for HTML5 without WebGL (as of time of writing, only Chrome and Firefox support it).

Example of skewing:

End User Licence Agreement (EULA).

Changes in 1.0.0

initial commit

Version 1.0.0. Published July 10, 2014

Created with GameMaker: Studio v1.99.170

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Morne B 07 July 2019

Keep shadows stuck at feet of object sprite

thanks nice for shadows! If anyone wants the feet of shadow to be stuck to objects feet sprite then modify the x position as below by adding: +(hskew/6)
This is best I got after some testing, not perfect.

if gShadowsOn {
hskew = gSkewH;
vskew = gSkewV;
draw_sprite_skew_ext(sprite_index, image_index, x+(hskew/6), y, hScaleShadow, vScaleShadow, image_angle, bm_add, alphaShadow, hskew, vskew);


Anonymous 30 January 2019


Bart B 21 October 2018


Willem J 30 July 2018

The best!

It works with GMS2, for anyone wondering.

Skewing sprites can add SO MUCH to a game and this script makes it SUPER EASY.


Bastien O 11 April 2018


Brandon C 22 August 2017


Gadyka 5 14 August 2017


Jeremy N 05 July 2017

Works flawlessly!

I'd recommend it to anyone!


Anonymous 02 March 2017


Alexei R 06 January 2017

It's great!

I love it. It does exactly what I need. Before this, my shadow system was rather basic and didn't allow for dynamic position of the light source. Now it does!


Lykakspars B 12 February 2016

Nice 3D Draw Sprites

Nice and Rice!


Anonymous 29 October 2015

Works as intended. Nice.


Anonymous 01 September 2015

Best Shadow Script

This is the script to have if you want a realistic shadow using skewing!

Been looking for a method or way to angle my sprites' shadows while keeping the feet portion in the correct spot.

Worked perfectly!

Package contents

Loading, please wait

What is the issue?

Back to Top