1
Bug Archives / recyclable actors serious bug#2
« on: 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.
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.