Hey CT forum,
So I'm going slow, just started, decided to try and make a small "Missile Command" type of game to learn the ins and outs of CTF. So go easy on me, and please be specific, I'm still not comfortable with where / how to do things.
So I've got it started pretty good, but I'm stuck on something. I have an active object for the (random x coordinate / top of screen) bombs that are spawned every few seconds and I set the initial directions to 20-28 (using the bouncing ball type of movement).
This works fine, except there are some offscreen paths that are created that I want to fix. For example, if the random x coordinate is 50, and the random initial direction chosen is 20 (7 oclock), the bomb is only on the screen for a second or two while it shoots shortly across the top left corner only.
So I'd like to say something like:
"if random x coordinate for the current bomb is < (Frame Width / 2) set bomb initial direction to RRandom(24, 28)
else set initial direction to RRandom(20,24)"