TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Anchor to Screen without the actor being on the top layer?
Pages:
1
Anchor to Screen without the actor being on the top layer?
ozz
Posts: 575
June 25, 2020, 11:04:31 am
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
June 25, 2020, 11:39:46 am
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
June 25, 2020, 12:13:39 pm
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
June 25, 2020, 12:28:35 pm
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
June 25, 2020, 12:32:00 pm
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
June 25, 2020, 06:28:40 pm
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
June 25, 2020, 06:51:00 pm
Wow I didn't even know that's an option, thanks.
Pages:
1