GameMaker: Studio

GameMaker: Studio

Προβολή στατιστικών:
Flipping / Mirroring Sprite?
I know that the sprite editor has the ability to mirror and flip images, but is there any way to mirror / flip a sprite when simply drawing it to the screen?

I see that draw_sprite_ext has the ability to draw the sprite rotated, but rotating the sprite I'm trying to draw causes it to look distorted. I could always just add additional sprites to my project that already have the image mirror and / or flipped, but that would mean more texture space taken up.
< >
Εμφάνιση 1-8 από 8 σχόλια
makeing image_xscale negative flips it horizontally and making image_yscale negative flips it vertically. Note that you may experience wierd behavior if you do this and the origin isnt centered though. You can manually draw it using draw_sprite_ext or streched and micromanage the numbers to get it working correctly if needed.
Once again you come to my aid. Thanks a ton!

I figured there would be a way to do it, but I didn't find any functions related to it. I checked everything that seemed relevant... never would have thought the the xscale or yscale could be used to alter it. I thought those were only for size scaling.

Thanks again. I'll have to try that out.
Αναρτήθηκε αρχικά από Daynar:
makeing image_xscale negative flips it horizontally and making image_yscale negative flips it vertically. Note that you may experience wierd behavior if you do this and the origin isnt centered though. You can manually draw it using draw_sprite_ext or streched and micromanage the numbers to get it working correctly if needed.
Thank you man,helped me too !
Αναρτήθηκε αρχικά από Daynar:
makeing image_xscale negative flips it horizontally and making image_yscale negative flips it vertically. Note that you may experience wierd behavior if you do this and the origin isnt centered though. You can manually draw it using draw_sprite_ext or streched and micromanage the numbers to get it working correctly if needed.
*making
Ha ha. You really dug up a thread from 2015 to make a single minor spelling correction?
Τελευταία επεξεργασία από BOYCOTT S-T-E-A-M!; 5 Απρ 2017, 12:48
Er... Not all heros wear capes? XD
They also travel back in time to write a wrong.
Αναρτήθηκε αρχικά από sitebender:
They also travel back in time to write a wrong.
*right :steammocking:
< >
Εμφάνιση 1-8 από 8 σχόλια
Ανά σελίδα: 1530 50

Ημ/νία ανάρτησης: 7 Σεπ 2015, 11:41
Αναρτήσεις: 8