For the title screen of my new game I want to have a space background with starts and comets flying across the screen in the background. The best way I can think of doing this is to have an active object going up and down outside the screen and every few seconds it shoots a star. I would have like 4 or 5 of em shooting em' every few seconds and in different positions so there are multiple starts in different sizes. Is there a better way to do this? There has to be. This is just asinine.
I used to do something similar to that when I first made games. Yes, there is a better way.
Always > Create object at some random position outside the playfield. (preferably one already to the right of the screen) For instance, (650, 240).
Value A of Projectile = 0 > Set Y position to Random(480) + Set Value A to 1. (Where 480 is the Playfield height)
Then you can either always set the X position to its current position minus 1 or 2 or however many you want, or just set it to a bouncing ball that always moves left.
If you don't want that many, you can create them based off of a timer or counter setup instead of an always condition. For different sizes you can just add another event in the second condition above to set the scale to Random(10)/10 OR just draw separate sizes as animations and change the animation to a random one. You could take it a step further and set the speeds to be Random(50) + 50 or something similar. Tell me if I need to clarify anything.
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.