• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML Visual Spinning Text

W

WanSou

Guest
Hello,

TL;TR
How to make spinning text in drag and drop.

So i am making a little game named "Precision" and im just doing End/You Won Screen And I Wanted To Make A Text "You Won" Spin... And I Tried "image_angle += 5" As GML In Step Event, I Just Copied It And Pasted It But I Would Rather Drag And Drop.
 

marasovec

Member
DnD does not allow you to do this so you need to code a bit. This is probably the easiest way
Code:
Create event:
angle = 0;

Draw event:
angle += 5;

draw_set_halign(fa_center); // set rotating angle to the center of the text
draw_set_valign(fa_middle);
draw_text_transformed(x, y, "Your string", 1, 1, angle);
 
Last edited:
Top