How can I spawn a sprite based on a condition after the game starts?
- by teddyweedy
How do I spawn a sprite anytime later in the game when the game starts?
I'm using FlashDevelop with Flixel. I did try it in override public function create(): void. It works only in the beginning. I try it using if (FlxG.score == 1) but it doesn't work. I also tried it in override public function update(): void. It works and it is moving but it leaves a sprite making it a multi-sprite. I also did try FlxGroup but to no avail.