Custom behaviour of killed actor is copied to just created actor

corbanwolf

  • Posts: 223
One of actors has custom behaviour. This actor type is ZOMBIE. In the same scene there is a spawn that creates new ZOMBIE types one per second (with standard behaviour). When the first actor with custom behaviour dies, the very next spawned ZOMBIE actor has the same custom behaviour as the actor that just had died. Is there a way to prevent that from happening?
♪♪♪♪♪♪

Luyren

  • *
  • Posts: 2802
Sounds pontentially like a recycle actor bug. If you can create a sample game (just one scene, one actor and the spawner) showing this issue in action, post it in the issue tracker. If you can't reproduce it, you might need to narrow down what's causing it, based on the specific circumstances of your game.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

corbanwolf

  • Posts: 223
http://community.stencyl.com/index.php?issue=1558.0
here it is
sorry for the rough graphics, didn't have time for that
♪♪♪♪♪♪

Luyren

  • *
  • Posts: 2802
You should provide a clear description of the bug, as well as the steps to reproduce, even if you already posted here. Also provide an explanation of what's what in your sample game.

As for what you can do meanwhile, you can just set the attribtue for the last created actor in your spawner.

Edit: I got a sample game, I'll update your thread on the issue tracker.

« Last Edit: April 29, 2019, 07:22:59 am by Luyren »
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.