Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Space particles

Author
Message
Mucky Muck Ninja
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: im not entirely sure
Posted: 20th Dec 2003 21:07
Ive run into another prob in my space game. I need to give the player a sense of movement, sense there isn't a matrix. To do this I thought the easiest way would be to make a bunch of space particles. That way when you move, you go past them, making a sense of movement. Im using very small cubes for the particles. Im using a for/next loop to create about 200 of them. Then i place them randomly. My problem is, 200 cubes slows down the game way too much. The sync is at zero and its too slow. Any ideas on how to make the 200 cubes not use so much speed?(im not using the particle system, just the objects you can make within the editor.)

Am I an Idiot...or is everyone else just really smart?
Brandon Smith
21
Years of Service
User Offline
Joined: 19th Oct 2003
Location: Urbana, Illinois (USA)
Posted: 20th Dec 2003 21:54 Edited at: 20th Dec 2003 21:56
This definily isn't a great way to go, but untill someone else suggests something better...how does just making 200 plains work? If they're small enough, it shouldn't really matter that they aren't true 3D objects.

Let me know how it works if you try it,
Brandon
Mucky Muck Ninja
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: im not entirely sure
Posted: 20th Dec 2003 22:03
Thanks alot! that speeds it up some more. More speed would be nice though. Is there any other way i could go about making space particles that would be faster?

Am I an Idiot...or is everyone else just really smart?
Brandon Smith
21
Years of Service
User Offline
Joined: 19th Oct 2003
Location: Urbana, Illinois (USA)
Posted: 21st Dec 2003 01:05
Excellent, glad to know it helped.

There have been some pretty good ideas brough up in the forums about different ways to create space particle effects. There were a few people that brought up the point of creating a parrallax effect (stars appear to be at diifent depths, which you would get by your method anyway) by creating multiple layers of huge transparent plains. Then painting them somehow with to look like star fields. That method might be a little faster, but since I've never tried it, I don't know how it looks.
You might also want to look into other ways to speed up your program. There have been a few threads that gave really good ideas for speeding up your game. Another they didn't say, which I've never tried but heard some people talking about, was to have some of your algorithms only run every other frame or so.

Anyway, good luck, and I hope some of it helps
Brandon

Login to post a reply

Server time is: 2025-05-22 01:47:31
Your offset time is: 2025-05-22 01:47:31