Anchor to Screen without the actor being on the top layer?

ozz

  • *
  • Posts: 575
  I have a textbox I need to stay centered as the camera moves, but using the Anchor Block means the text always draws behind the textbox.  Is there a way to anchor the text box where I need it while keeping it on the layer I place it on?

Luyren

  • *
  • Posts: 2754
The drawing blocks are draw on the layer of their "parent" actor. You can change that by using this block, under Drawing > Transforms:


Drawing settings are global though, so you might need to set the drawing layer back in other behaviors, so keep that in mind.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

ozz

  • *
  • Posts: 575
I tried that, but since the dialog is tided to the Scene and not the Textbox itself it still appears behind the Textbox, I think because it's anchored.  Or are you saying I should try to turn the Textbox into an Image?

Luyren

  • *
  • Posts: 2754
You could send the information to the textbox and have it draw your text, that could work.

Using the Image blocks would offer more flexibility, but they have a bit of a learning curve.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

ozz

  • *
  • Posts: 575
Indeed, I would go as far as to call it highly complex.  I'm trying to learn how images work, but I could really find any in depth guides.  Every time I've tried to use any of the image blocks I get back an error message, I know people use them, but they just don't seem to work at all.

« Last Edit: June 25, 2020, 01:05:23 pm by ozz »

Justin

  • *
  • Posts: 4695
Set the parallax scale factor for any layer to 0 and it will act the same as the HUD layer but keep the same layer order.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

ozz

  • *
  • Posts: 575
Wow I didn't even know that's an option, thanks.