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
→
Bug Archives
→
recyclable actors serious bug#2
Pages:
1
recyclable actors serious bug#2
Demkamen
Posts: 124
July 05, 2016, 09:16:30 am
as a continuation of the solved problem with recyclable actors(
http://community.stencyl.com/index.php/topic,47073.0.html
)
Hey guys, now I get a new problem with recyclable actor and public(not hidden) attributes. I making a very complex save/load level system. When level creating I clear the stage and save all actors/positions/parametrs and then I spawn it again. I attached some pictures. For enemy I have 2 not hidden attributes: moveDir and faceDir, first one can be: -1 or 0 or 1, and second: -1 or 1. And when I kill any actor, and spawn it - this attributes can't changed as I want. It show very strange value(like doubles), for example moveDir hase -11.
X-Ray Detective flash game
Demkamen
Posts: 124
July 05, 2016, 07:20:38 pm
I have identified the problem more specifically: we get problem with blue attributes(hidden or not hidden - no difference) if we clear stage when it created(without delay)(Of course, I understand - we can add delay for remove the bug). So, if we delete any actor with attributes and spawned similar actor - this actor will inheriting previous attribute, and have its own attribute at the same time
X-Ray Detective flash game
RulezTeam
Posts: 319
July 07, 2016, 02:16:26 am
Hi Demkamen,
so, for fix this bug I should use a Do After for create actor ?
Demkamen
Posts: 124
July 07, 2016, 04:38:09 am
Hi, you should put do after block for
kill actors
when creating scene
X-Ray Detective flash game
Pages:
1