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 Professional Discussion / Technical advice needed.

Author
Message
Gilfalas
22
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Luxembourg
Posted: 4th Feb 2003 15:48
Hi

I am currently working on a kind of space shooter with vertical scrolling. Now I've been, until now, creating my ennemy spaceships on the fly as needed. I noticed, that each time I create an ennemy spaceship I get kind of a delay and scrolling loses fluidity for a brief moment.

This made me think that loading/creating objects on the fly is not very efficient for this kind of game. Do you agree?

Would you rather create all objects at the beginning of the level or should I look for any mistake in my code, because you believe on-the-fly creation should work nicely?
Richard Davey
Retired Moderator
23
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 4th Feb 2003 15:51
Not sure if this is 2D or 3D (3D I except) but in either case I would prepare my objects in advance. The creating of objects will slow the game momentarily, the loading of them even more so. Do it at the start of the level and then re-use objects as they expire. So if you want to have say 500 ships on one level, re-use them as they expire.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Gilfalas
22
Years of Service
User Offline
Joined: 26th Jan 2003
Location: Luxembourg
Posted: 4th Feb 2003 15:58
It is 3D indeed, but view is from the top, so it does look like a 2D shooter actually.

One more question: Does DELETE OBJECT use lots of hardware ressources? Would it slow down the game? I don't expect it to, but I just want to be on the safe side.

Thanks a lot for your advice.

Login to post a reply

Server time is: 2025-05-17 13:19:49
Your offset time is: 2025-05-17 13:19:49