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.

Luyren

  • *
  • Posts: 2802
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.

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.

Luyren

  • *
  • Posts: 2802
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.