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
→
Releasing mouse on actor triggers multiple layers
Pages:
1
Releasing mouse on actor triggers multiple layers
SirCrocketz
Posts: 24
February 09, 2017, 03:33:56 pm
attached is a video of what I mean.
When I select a blank hex, it provides a "menu" of blue, green, and purple. when I select one, the blank hex turns into my selection, works beautifully. The problem is that the blank hex underneath my selection is also being triggered. Is there a way to get around that?
JeffreyDriver
Posts: 2262
February 09, 2017, 05:21:36 pm
Can you post your code?
Current Projects:
The Grand Grimoire Chronicles Episode 3
Twitter@JeffreyDriver
apps.jeffreydriver.co.uk
stefan
Posts: 2263
February 09, 2017, 06:06:47 pm
Its a common problem. My solution is to use a scene behavior that checks on what actors you click, compare the Z-index or layer ID's the actors are on, and only trigger whatever code you wanted to trigger trough a custom event on that actor that is on the highest layer/z index
SirCrocketz
Posts: 24
February 09, 2017, 08:42:16 pm
I attached my code.
Could you provide an example of the scene behavior you're referencing? I don't exactly follow. I apologize I'm new to this.
Pages:
1