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
→
Cannot get a button / actor on the stage despite having it placed in the editor
Pages:
1
Cannot get a button / actor on the stage despite having it placed in the editor
jimm84
Posts: 31
October 27, 2016, 01:52:45 am
Hello, I was hoping someone would be able me as I'm now banging my head against the wall.
I have dragged an actor onto the scene onto the top layer to act as a HUD / menu button when clicked. In the editor this button is visible but when I come to test they vanish. There must be something I'm missing... or a bug. Here are some more details:
The actor is a png file
The I have removed the physics
I have set it to loop
It's on the top layer
The actor has a basic bevaiour, "when clicked" -I have disabled this behavior yet my actor is still invisible..
Any clues? Thanks for your help (I hope this question isn't as silly as where did I leave my glasses)
JeffreyDriver
Posts: 2262
October 27, 2016, 07:01:44 am
Have you set the physics for the actor to "cannot move"?
If it's just a button and doesn't need to collide with anything else, also try removing it's collision shape. It may be that it's colliding with something and getting knocked off screen.
Current Projects:
The Grand Grimoire Chronicles Episode 3
Twitter@JeffreyDriver
apps.jeffreydriver.co.uk
jimm84
Posts: 31
October 27, 2016, 08:16:58 am
Thanks, still no luck. Any other ideas? It is such a weird thing!
JeffreyDriver
Posts: 2262
October 27, 2016, 01:16:19 pm
Ok, when weird stuff happens in Stencyl for me, I do some problem solving. I'd create two global number booleans to check the X and Y value of the button and draw these values to the scene so can check where it is. You can also use the "for each actor of type" to check that it exists in the scene.
Just check though, there's no code changing the opacity?
Current Projects:
The Grand Grimoire Chronicles Episode 3
Twitter@JeffreyDriver
apps.jeffreydriver.co.uk
jimm84
Posts: 31
November 03, 2016, 03:27:47 pm
I will have to check on the opacity. I would like to think its something obvious and not a bug or something.
I must confess, I'm not very well versed on working with the global booleans yet, Ive worked and standard boolean... - hang on do you mean as standard variable/ boolean true and false?
Cheers,
JeffreyDriver
Posts: 2262
November 03, 2016, 06:49:48 pm
Sorry, I meant number ATTRIBUTES, not booleans. One for the X value, one for the Y, then use 'draw text' block under 'drawing' to simply write these values on screen so you can check where the actor is.
Current Projects:
The Grand Grimoire Chronicles Episode 3
Twitter@JeffreyDriver
apps.jeffreydriver.co.uk
Pages:
1