Author Topic: Help me Timer angle ( Draw Event )  (Read 2336 times)

Neos33

  • Wannabe
  • Posts: 9
  • (´・ω・`)
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 37.0 Firefox 37.0
    • View Profile
  • Playstyle: Keyboard
Help me Timer angle ( Draw Event )
« on: April 20, 2015, 10:00:37 PM »
BibleThump
Someone help me in this ?

I can't do same angle in the second Picture

Help
Sorry my English

Sephalos

  • Spike Dodger
  • Posts: 228
  • OS:
  • Windows Vista/Server 2008 Windows Vista/Server 2008
  • Browser:
  • Chrome 42.0.2311.90 Chrome 42.0.2311.90
    • View Profile
  • Playstyle: Gamepad
Re: Help me Timer angle ( Draw Event )
« Reply #1 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.

YoSniper

  • Awexome
  • Global Moderator
  • Spike Dodger
  • Posts: 142
  • People regard me as a programming overlord.
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 42.0.2311.90 Chrome 42.0.2311.90
    • View Profile
    • My YouTube
  • Playstyle: Keyboard
Re: Help me Timer angle ( Draw Event )
« Reply #2 on: April 21, 2015, 04:27:14 PM »
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.

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.
I don't traverse the forums as much anymore. Follow me on Twitter if you want to keep tabs on me!

Twitter: @YoSniperGames
Twitch: yosniper

Streams happen whenever I feel like it.

Sephalos

  • Spike Dodger
  • Posts: 228
  • OS:
  • Windows Vista/Server 2008 Windows Vista/Server 2008
  • Browser:
  • Chrome 42.0.2311.90 Chrome 42.0.2311.90
    • View Profile
  • Playstyle: Gamepad
Re: Help me Timer angle ( Draw Event )
« Reply #3 on: April 21, 2015, 04:40:04 PM »
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.

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.
I guess that's true, I forgot to consider that the text would need to be both xscale -1 and yscale -1

lemonxreaper

  • Administrator
  • Spike Dodger
  • Posts: 222
  • Do you even needle?
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 37.0 Firefox 37.0
    • View Profile
Re: Help me Timer angle ( Draw Event )
« Reply #4 on: April 22, 2015, 01:50:16 PM »
might be important to also make sure the text is aligned to the center, or flipping the scales might offset it on flip.
Just pretend I have a cool picture like Zero.
Completed Fangames: https://dl.dropboxusercontent.com/u/4678222/Complete%20Fangames.txt

Neos33

  • Wannabe
  • Posts: 9
  • (´・ω・`)
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 42.0.2311.90 Chrome 42.0.2311.90
    • View Profile
  • Playstyle: Keyboard
Re: Help me Timer angle ( Draw Event )
« Reply #5 on: April 24, 2015, 07:28:11 PM »
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.

I never use draw_text_transformed , thank you