Description

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:
http://i.imgur.com/V4lKAl5.png

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.


Gravatar

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!


Gravatar

Lykakspars B 12 February 2016

Nice 3D Draw Sprites

Nice and Rice!


Gravatar

Anonymous 29 October 2015

Works as intended. Nice.


Gravatar

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

Total size 2.14 KB

What is the issue?

Back to Top