Fangames > Programming Questions

Help me Timer angle ( Draw Event )

(1/2) > >>

Neos33:
BibleThump
Someone help me in this ?
(click to show/hide)https://gyazo.com/d9418a68e02e5a1abc9b3075425aa1fc
I can't do same angle in the second Picture
(click to show/hide)https://gyazo.com/1989a0d00d8d74409595ace73b3dfcee
Help
Sorry my English

Sephalos:
if you're drawing a sprite do draw_sprite_ext(sprite,subimg,x,y,xscale,yscale,rot,color,alpha) and have the yscale be -1.

if you're drawing a text, use draw_text_transformed(x,y,string,xscale,yscale,angle) and have the yscale be -1.

YoSniper:

--- Quote from: Sephalos on April 21, 2015, 01:01:51 AM ---if you're drawing a sprite do draw_sprite_ext(sprite,subimg,x,y,xscale,yscale,rot,color,alpha) and have the yscale be -1.

if you're drawing a text, use draw_text_transformed(x,y,string,xscale,yscale,angle) and have the yscale be -1.

--- End quote ---

I think keeping the yscale at 1 would be fine. You'd just have to make sure that angle = 180. If you just flip the yscale, the text will show up backwards.

Sephalos:

--- Quote from: YoSniper on April 21, 2015, 04:27:14 PM ---
--- Quote from: Sephalos on April 21, 2015, 01:01:51 AM ---if you're drawing a sprite do draw_sprite_ext(sprite,subimg,x,y,xscale,yscale,rot,color,alpha) and have the yscale be -1.

if you're drawing a text, use draw_text_transformed(x,y,string,xscale,yscale,angle) and have the yscale be -1.

--- End quote ---

I think keeping the yscale at 1 would be fine. You'd just have to make sure that angle = 180. If you just flip the yscale, the text will show up backwards.

--- End quote ---
I guess that's true, I forgot to consider that the text would need to be both xscale -1 and yscale -1

lemonxreaper:
might be important to also make sure the text is aligned to the center, or flipping the scales might offset it on flip.

Navigation

[0] Message Index

[#] Next page

Go to full version