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 / i need help with my fps

Author
Message
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 4th Dec 2005 01:21
can dark basic (lite , classic...) make more bullet shot in same time ? i noticed game tutors and examples , none has more than one bullet firing at a time (i`m not thinking like shot gun , i`m thinking like machine gun ) , can someone help me with that ? (i made ak47 , it is very silly to make it shot one bullet , wait , shot one bullet....)

http://dodica.proboards75.com/index.cgi
first 20 are mods. i have 9 sofar.
The ARRAYinator
19
Years of Service
User Offline
Joined: 13th Aug 2005
Location:
Posted: 4th Dec 2005 16:28
yes you can but can't help you if you do not have some code so I could see what you are doing wrong.
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 4th Dec 2005 18:01 Edited at: 4th Dec 2005 18:01
For bullets to a machine gun, you could use raycasting. It's better than objects(Because you don't use any objects when using raycasting).

PanzerGameshere
Free Particle Engine For dbpro :
here
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 4th Dec 2005 18:32
i`m not sure dbclassic has raycasting (i`m preaty sure it doesn`t)

http://dodica.proboards75.com/index.cgi
first 20 are mods. i have 9 sofar.
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 4th Dec 2005 18:33
and here is the code (but media is 40mb so i can give it realy..)



http://dodica.proboards75.com/index.cgi
first 20 are mods. i have 9 sofar.
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 4th Dec 2005 18:45 Edited at: 4th Dec 2005 19:30
it's not silly if the bullet doesn't actually exist. There's nothing wrong with having one bullet at a time, as long it doesn't give you stupid delays:

you could for example:
make a TINY, TINY object move it a thousand times (check for collision between each movement) and after a thousand moves, delete it - just make sure you move it the full one thousand times in the same frame or else you will have stupid delays

Edit: The attached example shows just how slow things can be if you have several object at once as bullets (There's no source code, but viewing progress.log after firing a few bullets at a load of nothing should tell you just how slow were going while it was happening) - obviously an AK would never fire this quickly, or have a magazine capacity as large as this, it's just an example on why it can be a very bad idea...

...maybe one day I'll finish a project

Attachments

Login to view attachments
devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 5th Dec 2005 00:19
get sparky's collisions dll! it has raycasting and its CRAZY FAST!!!

verydevastating.com
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 5th Dec 2005 15:03
thats coll , but sorry only db enchased has the dll possibility.

(i wonder why all free basics like basic4gl has built in dll support for free......)

http://dodica.proboards75.com/index.cgi
first 20 are mods. i have 9 sofar.
Mason
21
Years of Service
User Offline
Joined: 20th Mar 2004
Location: Arizona
Posted: 7th Dec 2005 03:36
Dodic, how many projects do you currently have. I swear, each thread you make is a different project. Maybe you should stick to just one at a time.

Also somethings definitely wrong if your media is 40 mb's already. What formats are you using for your images and stuff? Textures shouldn't be around more then 128x128 and maybe if its big 256x256.


Check out Penguin in the Projects Section!!!
http://www.prodigyarts.5gigs.com
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 7th Dec 2005 20:50 Edited at: 11th Jan 2006 03:05
textures in big games like operation flashpoint gold , or farcry are around 1500,2000 pixels...

i lied about having 15 years of modeling experience , i admitt it

(its not just textures , in a real commercial game you have : different sound tracks , many models and textures , different levels and things like that...)


SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 9th Dec 2005 14:06 Edited at: 9th Dec 2005 14:07
40Mb is rather big - ok so yours wasn't just a little example program, but my pointless little example was down at 1.7 Mb compressed, that's with:
An AK-47
A Colt pistol
An MP5
A skybox
A very basic texture
2 reload sounds
3 weapon sounds

Quote: "and here is the code (but media is 40mb so i can give it realy..)"
If you're going to give out the code so we can try and help, include as little media as you can, any lines using any media you've not included can be easily rem'd out - for helping purposes we only really need one of each type of media, and then it's small enough to give it out. We (as am unwritten rule) almost always find problems easier to spot if we can actually press the F5 button with your code...

...maybe one day I'll finish a project
devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 9th Dec 2005 18:08
why does noone have the enhanced version anymore :*(** that saddens me. like i said in another thread, amazon.com has the enhanced dbc for 19 bucks. Or in your case, you could disassemble darkbasic.exe and add in the enhancements yourself. But amazon.com is probably cheaper than just buying the enhancements here (I havent even been able to find where you can buy them here...)

You are not allowed to mention features of commercial games in here. DarkBASIC is not for making real gamse like those. It's a toy, and a really really fun one, to learn programming. Its alot of fun, I love it as much as everyone else, but seriously... Noone even wants to hear the word Wolfenstein 3D out of you yet. The best way to get flamed (second best, next to your posting, actually) is to make commercial game references to anything more advanced than say... pong?

One more commercial game reference, and I'll sic my penguin troopers on you.
u ---> <---- my penguin of death

Sorry, I just feel mean today. I hope you luck on your projects, and may it rain on all your threads so as to extenguish the flames!

And I'm not sure if you slipped a couple pirated movies in with your media or what, but that is craaaaaaazy. Big textures are bad for DBC. THey make it sick.

happy file compressing!
---Jeff


and remember: and their master:

verydevastating.com
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 10th Dec 2005 01:30
Quote: "why does noone have the enhanced version anymore "

I do - Version 1.12...

...maybe one day I'll finish a project
bibz1st
22
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 11th Dec 2005 16:03
sometimes big textures are necessary, such as texturing a plain with a photo of a building which I had to do a lot of in my project, it does slow things down a lot but with a little jiggery pokery ( technical term ) its possible to get a reasonable frame rate, providing the pc is up to the job.
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&amp;Montenegro)
Posted: 11th Dec 2005 19:19
well , i `m like making a professional realy proffesional game with a small area of shooting crazy monsters (like serious sam)
so , i alreadi made musics (i have an bend..) , i made some preaty cull models , and it`s on the way , i`l try to compress it later , but i`l post some prewiev pics soon , so you know what i`m talking about...

i make free 3d models , then you tell me some stuff about usseles posts and then something heppen...
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 12th Dec 2005 00:32 Edited at: 12th Dec 2005 00:32
Dodic:

What about your strategy game post???

I spent time solving your problem two days ago and you have so far ignored it. I do hope you haven't wasted my time!

TDK_Man

Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&amp;Montenegro)
Posted: 12th Dec 2005 03:38
Quote: "What about your strategy game post???"



your solution is great , thanks ! i`m working currently on that strategy and this fps in same time , but i got more work on the strategy , thanks again!

i make free 3d models , then you tell me some stuff about usseles posts and then something heppen...
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 12th Dec 2005 08:58
Quote: " DOES dbc have raycasting??"


Sparky's DLL does (that's what intersectObject is)

16-colour PNGs pwn.
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&amp;Montenegro)
Posted: 12th Dec 2005 11:36
yeah , but that`s for DB ENCHASED only , and dbc isnt dbe
so , you know what i mean.....


p.s. I`m thinking about buyng db pro , my question is , how much different is it for simple stuff that can be made in db lite???

i make free 3d models , then you tell me some stuff about usseles posts and then something heppen...
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 12th Dec 2005 17:45
DBC without enhancements to me is unthinkable...

...maybe one day I'll finish a project
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 12th Dec 2005 18:11
Quote: "p.s. I`m thinking about buyng db pro , my question is , how much different is it for simple stuff that can be made in db lite???"


Nearly all of the simple stuff works in DBPro just fine. Everything you learn by using DBP would be in addition to what you know now, rather than replacing it...

16-colour PNGs pwn.
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&amp;Montenegro)
Posted: 12th Dec 2005 19:11
Quote: "Nearly all of the simple stuff works in DBPro just fine. Everything you learn by using DBP would be in addition to what you know now, rather than replacing it..."



that`s great but does that mean i can run most of my in lite made games ?

i make free 3d models , then you tell me some stuff about usseles posts and then something heppen...
devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 13th Dec 2005 02:04 Edited at: 13th Dec 2005 02:06
Quote: "like serious sam"


hmmm. I know your not talking about that commercial game seriuos sam, because if you were...



verydevastating.com
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 13th Dec 2005 18:35
...Yes, Serious Sam 2 does have a linux version...

16-colour PNGs pwn.
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&amp;Montenegro)
Posted: 11th Jan 2006 00:25
Quote: "...Yes, Serious Sam 2 does have a linux version..."


hm...what a _)_)_ is that suppost to mean ???

i dont use linux at all..


new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 11th Jan 2006 04:45
yes, i'll never forget

and their master:
MEEEEEEEE.

TGC mods are dumber than me.

how i got my avatar: one words: MODs
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 11th Jan 2006 17:42
@Dodic: Devastation's post had a massive picture of Tux the penguin (the linux mascot).

In related news, I am (from now on) going to call linux 'lunix' instead.

Support the AAANJL by doing nothing! Visit teh site below..
devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 12th Jan 2006 03:03
blanky u fiend!

Your signature has been erased by a mod because it's larger than 600x120...

Login to post a reply

Server time is: 2025-05-23 06:46:49
Your offset time is: 2025-05-23 06:46:49