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).
initial commit
Version 1.0.0. Published July 10, 2014
Created with GameMaker: Studio v1.99.170
You can only review assets you've bought.
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.
Works flawlessly!
I'd recommend it to anyone!
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!
Nice 3D Draw Sprites
Nice and Rice!
Works as intended. Nice.
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!