Off-center button text (Angry Blosics)

Hello. In the episode 1 level select for Angry Blosics, the text on the buttons is off-centered. How do I fix this? The button text is handled by the "Label" behaviour.
I prefer making physics puzzle games. R.I.P Sploder 2007-2020

Luyren

  • *
  • Posts: 2574
Code: [Select]
when drawing
switch to actor space for self
set current font to FONT
draw TEXT at (x: [half width of self] - [get width of TEXT using current font /2] y: [half height of self] - [ get height using current font /2])
That's the code you need. If you want to use the Labels behavior, read all its attributes and their descriptions, and see what options you have regarding position.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

Code: [Select]
when drawing
switch to actor space for self
set current font to FONT
draw TEXT at (x: [half width of self] - [get width of TEXT using current font /2] y: [half height of self] - [ get height using current font /2])
That's the code you need. If you want to use the Labels behavior, read all its attributes and their descriptions, and see what options you have regarding position.
It only made things way worse.
I prefer making physics puzzle games. R.I.P Sploder 2007-2020

Luyren

  • *
  • Posts: 2574
Saying "it doesn't work" or "it makes things way worse" doesn't tell anyone anything. Explain what you tried and post a screenshot of your code as needed.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter