Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// draw_sprite_halfpixel(sprite, subimg, x, y, xscale, yscale, rot, colour, alpha)
- //
- // Works the same as draw_sprite_ext() but draws the sprite
- // transformed about the center of its origin pixel instead of
- // the top-left corner. This can be useful when you require a
- // sprite to maintain the on-screen position of its origin pixel
- // as it is scaled and rotated.
- //
- /// GMLscripts.com/license
- {
- d3d_transform_stack_push();
- d3d_transform_add_translation(-0.5, -0.5, 0);
- d3d_transform_add_rotation_z(argument6);
- d3d_transform_add_scaling(argument4, argument5, 0);
- d3d_transform_add_translation(argument2+0.5, argument3+0.5, 0);
- draw_sprite_ext(argument0, argument1, 0, 0, 1, 1, 0, argument7, argument8);
- d3d_transform_stack_pop();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment