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
→
[Solved] Layers in Events
Pages:
1
[Solved] Layers in Events
Armylie
Posts: 9
May 23, 2019, 05:25:22 am
Hi it's really frustrating: I want to have "Button Starten 2" on top of my grey textbox. But it won't be on top.
Shouldn't the circled blocks put it in front of everything?
What am I doing wrong?
« Last Edit: May 31, 2019, 05:40:22 am by Armylie »
Luyren
Posts: 2807
May 23, 2019, 05:35:36 am
Probably something with the drawing priority over actors in the layer. You can use the draw image of actor block (Drawing > Actor Drawing) in your do after, and select your button actor, see if that solves it.
My Stencyl resources are available here:
https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Armylie
Posts: 9
May 23, 2019, 06:09:33 am
Unfortunatly this does nothing.
I also tried creating a layer in the Scene that nothing is on, but my Button isn't in the front of the box.
« Last Edit: May 23, 2019, 06:15:19 am by Armylie »
merrak
Posts: 2738
May 23, 2019, 09:22:11 am
You don't want to put 'Do After' inside a Drawing event. Drawing takes place 60 times per second... every time the screen refreshes.
If you want text, images, or anything else to be drawn after a delay, replace the 'Do After' with an 'if (attribute)' and then set the attribute to true/false in another event.
`/\=======/\"-
Website! -
http://www.anorthogonaluniverse.com
Facebook -
http://www.facebook.com/rlwatson
Twitter -
https://twitter.com/merrak
Armylie
Posts: 9
May 23, 2019, 01:03:17 pm
Well that explains, why a lot of my stuff is not working properly.
But my problem isn't solved. The actor button is still behind my gray and there occured another problem:
My condition for my button to appear now ist oppacity of"play" = 1. But this only works if i set it to 50 (the opacity and of course the condition =50) Even if I match the numbers it isn't working. I can't use =0 because the button is hidden most of the time. So now the initial problem is still there + there is another one.
GuyCockcroft
Posts: 193
May 25, 2019, 09:33:07 am
There is a block that allows you to specify the layer on which the drawing routines work. If you have a separate background layer, try that.
vicevicebingo
Posts: 80
May 26, 2019, 02:59:36 pm
when drawing, fill round rect at x 33 y 33
can you use actor to use this block
but not let a scene using it?
Armylie
Posts: 9
May 31, 2019, 05:40:00 am
Sorry for the late resonse, I had no time to work on my project.
But setting my drawinglayer helped with my problem.
Thanks
Pages:
1