Just make use of random or choose, If you set angle to choose(0,90,180,270) every X seconds then it will fire in one of 4 random directions. You can do this with speed, setting it randomly as often as you like. If it's preset patterns you can do this with functions, randomly call a function which leads to firing a certain sequence of bullets. A spiral pattern would be something like every tick fire a bullet and set angle to angle+1.
thank you very much, i have tried with only one object and works fine, but after 20/30 seconds of gameplay, I noticed a sharp decline in performance, it started to slow down to almost block everything.
did I do something wrong? Or what can it depend on?