recyclable actors serious bug#2

Demkamen

  • Posts: 124
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.

Demkamen

  • Posts: 124
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  :-\

RulezTeam

  • *
  • Posts: 319
Hi Demkamen,

so, for fix this bug I should use a Do After for create actor ?

Demkamen

  • Posts: 124
Hi, you should put do after block for kill actors when creating scene