Greetings! I’m currently poking around with recycle entity, but I’m not too sure how to control it without declaring it as a variable. Now Enemy the moves without the bulletGenerator tagging along.
Can anyone give me some example how I can work with this? Thanks
public function Enemy()
public function init(_x:Number, _y:Number):void
{
this.x = _x;
this.y = _y;
BulletGenerator(FP.world.create(BulletGenerator)).turret_spawn(_x, _y); //declare?
}
override public function update():void
{
super.update();
}