So, I had an idea that a spooky demon could have an attack where they make a spooky portal. That spooky portal would then randomly spit out a spooky rat, a spooky bat, or a spooky hat. You know. Normal stuff.
I can see it being done by having the spooky demon have an attack that uses summonframe to create a spookyportal.txt, which is an enemy that can't move and has 3 attacks that use spawnframe to create spookyrat.txt, spookybat.txt, and spookyhat.txt. Since attacks on enemies are, as far as I can tell, chosen fairly randomly unless you start giving them parameters for their use, this seems like a pretty obvious solution.
But then I thought "what if I wanted different colors?" I suppose you could change them to spawn with a specific palette and just bump up the attacks, but that seems... inefficient. There's probably a way to create a list then have the things within it chosen at random. But if that's the case, couldn't you do that with the spawned entities, too?
I'm unsure. After looking at things for a while, I decided to just ask and see.
I can see it being done by having the spooky demon have an attack that uses summonframe to create a spookyportal.txt, which is an enemy that can't move and has 3 attacks that use spawnframe to create spookyrat.txt, spookybat.txt, and spookyhat.txt. Since attacks on enemies are, as far as I can tell, chosen fairly randomly unless you start giving them parameters for their use, this seems like a pretty obvious solution.
But then I thought "what if I wanted different colors?" I suppose you could change them to spawn with a specific palette and just bump up the attacks, but that seems... inefficient. There's probably a way to create a list then have the things within it chosen at random. But if that's the case, couldn't you do that with the spawned entities, too?
I'm unsure. After looking at things for a while, I decided to just ask and see.