Hi! I've seen this topic once or twice on Unity, but I'm a little confused as to how to create bullet patterns for a bullet-hell game. Conceptually speaking, I don't understand how to start instantiating the bullets. If the pattern is a circle, then are all the bullets instantiated from the enemy, or do they come from spawn points (which then isn't the enemy really?) If I want to do a circle patterns of bullets fired forward rather than a circle around an object, how would I do something like that? (Like Enter the Gungeon ) In all, how do I create bullet patterns to be fired by a villain? Any help would be greatly appreciated. (I don't want to use a Unity Asset for this but do it by hand! But I do think the Danmaku Pattern to be interesting...)
You could probably make a pretty flexible system with a combination of prefabs that you can visually edit, and code to fire them at regular intervals. For instance, you'd make a prefab that has a bunch of children offset from it, and those offsets would encode the direction of the bullets.You can put markers on the GameObject it the editor, such as the color bubbles at the top left of the main inspector window, so you can visualize them in-scene. Then you'd have code that fires them appropriately, using those templates.
Take math formula for pattern you want and calculate it with discrete steps. Place particles at resulting positions and give them speed and directions, and that's it. Here's is some good example, it should be easy to replace game object with particles for performance https://catlikecoding.com/unity/tutorials/basics/mathematical-surfaces/