Text

SkyPilot

  • Posts: 34
When I use your code, it works.
Make sure you don't have any more code that is affecting the X coordinate.
Are you testing it on Android?

This is really weird. That's literally the only code. I'm testing it on  a windows PC.  The code is on an actor that's in the scene, not the scene itself. It is an event, not a behaviour. Nothing changes when I close Stencyl and boot it up again. I have no idea what's wrong.

LIBERADO

  • *
  • Posts: 2718
This is really weird. That's literally the only code.
Can you post the .stencyl file?
(File > Export Game)

I would like to check it.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.


LIBERADO

  • *
  • Posts: 2718
Your actor was empty. When I add at least a single transparent frame to the actor, the problem is solved.
Now, the text will obey whatever coordinates you set for the actor. Also, enabling the "Allow Scale Switching" option in the Game Settings makes the text look better, without pixelation.

You can check it in the .stencyl file attached to this post.
(File > Import Game)

« Last Edit: June 07, 2020, 05:14:06 pm by LIBERADO »
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

SkyPilot

  • Posts: 34
Thanks for this, it works! What's weird is that the stencyl page on labels says:
1) Create a blank Actor with a blank Animation.
But I guess a "blank actor" isn't an actor with no animation. (I don't know what a "blank animation" is so I thought it was just no animation)
Thanks again, this one really had me stumped.
P.S. Your tip about scale switching worked great!