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 / functions and sprites

Author
Message
darkpsychosis
23
Years of Service
User Offline
Joined: 12th Mar 2003
Location:
Posted: 30th Mar 2003 02:43
i have a couple of questions... first, i'm using dbc, and it gives me trouble using functions. first, would it slow down my total fps if i just made the game out of 'goto' subroutines? secondly, if it does, would someone please give me an example of a working dbc function routine?

second, i'm trying to use sprites, i.e. custom menu buttons, but it's not letting me, and i think it is because the filetype is .gif. is there any way to use .gif files, or am i going to have to save it as something else?

thanks, everyone. you've been great.
we're all mad here.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 30th Mar 2003 02:53
I've been told that gosubs are faster than functions in classic.

Gifs are not usable within DB, because you have to pay to licence the technology - something that would have made DB much more expensive. Stick to BMPs, JPGs and PNGs.
hexGEAR
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 30th Mar 2003 03:53
gosubs are definately faster than functions, i guess the only reason i end up using functions is that making large games within one single file (with gosubs) can get really complex and hard to recognise after a while, and using multiple files is only possible using functions! The speed of functions could be increased however but it depends greatly on your code efficiency!

everyday of life is a new chapter that has already been fortold but is up to the soul to capture.
darkpsychosis
23
Years of Service
User Offline
Joined: 12th Mar 2003
Location:
Posted: 30th Mar 2003 07:52
thanks guys, now i've a feeling how to go about finishing this... i hate functions anyway. and thanks for the file advice, ianm.

we're all mad here.

Login to post a reply

Server time is: 2026-06-11 14:47:43
Your offset time is: 2026-06-11 14:47:43