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:
Version 1.0.0. Published July 10, 2014
Created with GameMaker: Studio v1.99.170
You can only review assets you've bought.
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.
Total size 2.14 KB