8/7/2023 0 Comments Game maker studio 2 animationThe first bunch of these are the same as those of regular draw_sprite_ext - you have sprite index, image index, position, scale, rotation, and opacity (no color blending because draw_sprite_pos doesn't have that). That's exactly what the situation demands.įrom hereon, the trick is to calculate coordinates of each point correctly.įortunately, this is no complicated matter, and I already wrote a tutorial about this before. The built-in function isn't made for that, but, with a little bit of math and draw_sprite_pos, you can have a script for this.ĭraw_sprite_pos allows you to draw sprites with arbitrary affine transformations by providing coordinates of each corner of the sprite. This post is about a slightly fancier version of draw_sprite_ext - maybe you want to apply skewing/shearing to the sprite, or scale it after rotating it, or use a 2d matrix transformation. ![]() (click to interact) (mouseover/click to play GIF) Drag sliders and click things (if JS is enabled)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |