Starting Off

There are many ways to make a 3D flying through space effect, but I think the Particle3D way is the best-looking. Particle3D involves setting the X and Y positions of an object from the _X _Y and _Z values of it. More on that later.

Anyway

The starfield effect is produced by subtracting from the Z value, making the particle (or star in our case) closer to the screen. Anyway, start off by having an event create the stars - just use Always create star at 52,52 or use Always to start a loop which created a random amount of stars. Do it your way. Then, in the same event, set the _X value (or Value A if you use TGF) to

32000 - Random( 64000 )

the _Y value (Value B) to

24000 - Random( 48000 )

and set the _Z value (or Value C) to 100. This works on a 640x480 screen, so you can change the values if you need to. All the 0s are because otherwise the stars would only be created from a 6x5 square - it's 100 values back so we have to multiply it by 100.

Neeeeeeeoooooooowwwwwwwwwww

Now, to make it go forward, always at 1 to the _Z value (value C). This brings it closer to the screen.Try it, and run it. It'll either run out of objects, or the stars will come back again. Which is weird. So, when the Z_ is 0, destroy the star. And you might like to change the animations/directions as the star gets closer.

Well, that's it from me. This works fine in MMF, but I'm not sure about TGF yet. If it doesn't, can you post here, please?