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.

Code Snippets / My first contribution to the DB community :)

Author
Message
DARKGuy
20
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 15th Apr 2004 18:47 Edited at: 15th Apr 2004 20:43
Hi all!

This is my first contribution to the DB community for all the help you all gave me all this time since I registered in this forum . I'll be making more useful snippets and 3D models too

well...yesterday I was taking a look at some DarkForge code for making scrolling credits like the movies. I found that my FPS greatly dropped with that code and I decided to make my own routine for my game. Seeing that it's better than his way of making it, I decided to share it with all of you

It's all commented and there's instructions on how to implement it in your own code

I don't mean to offense DarkForge or anything like that, besides, the inspiration for making this was his code . And it was interesting that "Make_Page" function...

The code is in the Source button. I'm gonna see if I can add it to the codebase too

Comments, suggestions, correction of grammal errors, and questions are always welcome

See ya!

CODE IN THE SOURCE BUTTON

Edit: If you see the screnshot in the codebase, please don't laugh at my FPS...

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
DARKGuy
20
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 15th Apr 2004 23:45
hmmmm isn't it useful?

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Apr 2004 01:54
DB Pro, U5.2:

Quote: "Error at line 90:
if TY(a)SCREEN HEIGHT()-(TEXT HEIGHT("A")+(TEXT HEIGHT("A")/10))
PARSER ERROR
------------
Could not determine parameter type of 'TY(a)SCREEN HEIGHT()' at line 90.
"


I added a > after TY(a), hope that's right.

I get 270 FPS with yours, 210 with the original so it's a reasonable improvement.

Just watch out, Dark Forge is Rich..you know, that administrator bloke who hangs around here.

BatVink
http://facepaint.me.uk/catalog/default.php
<Font size="0">AMD 3000+ Barton, 512K Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.</FONT>
DARKGuy
20
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 16th Apr 2004 02:20 Edited at: 16th Apr 2004 02:27
edit 2 *lol*: OMG! sorry about that....strange, it must be the SOURCE button...i'll put the code here as a snippet to see...also I've checked the codebase entry and the code is well there, just change your ">" for a "<". That's all

Anyway it's good to know that my code works on DBPro

Quote: "Just watch out, Dark Forge is Rich..you know, that administrator bloke who hangs around here."


edit: OMG!!!!!!!!!!!!!!!!!!!!!! WTF?? is he Rich?!?!??!???!??!???!?!??!??!! I hope he doesn't ban me I only was trying to do my own credits function for my game so I decided to share it with you all... , and seeing that in my PC got some low fps...also I added a fading effect for when the text is near the top or bottom the screen



:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
DarkSin
20
Years of Service
User Offline
Joined: 23rd Jul 2003
Location: Under your bed
Posted: 16th Apr 2004 07:50
I doupt he would ban you becuase you made an improved version of his original... although... there was that one kid that had done a similar thing... you know the one... that was found in a lake and all that... really freaky stuff...

btw nice code!


Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 16th Apr 2004 20:28
Quote: "although... there was that one kid that had done a similar thing... you know the one... that was found in a lake and all that... really freaky stuff..."

ROFL!



Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 16th Apr 2004 20:52
uummm don't tell anyone i said this but...well...you know pet rat...well... ...ya...


Formerly known as "DarkWing Duck"
DARKGuy
20
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 16th Apr 2004 23:50
Quote: "there was that one kid that had done a similar thing... you know the one... that was found in a lake and all that... really freaky stuff"


omg....well...he can't kill me *lol* i'm tooooooo far from USA . btw I'm glad you liked my code

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 17th Apr 2004 01:17
Quote: "i'm tooooooo far from USA "


Why does everyone think that the UK can't do anything good any more?

Oh yes...Linda Barker.

BatVink
http://facepaint.me.uk/catalog/default.php
AMD 3000+ Barton, 512K Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 17th Apr 2004 02:07
Quote: "omg....well...he can't kill me *lol* i'm tooooooo far from USA "


Doesn't he live in Bristol or somewhere like that?

"To do is to be" - Descartes
"To be is to do" - Voltaire
"Do be do be do" - Frank Sinatra
DARKGuy
20
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 17th Apr 2004 03:25
keep guessing...

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 19th Apr 2004 12:10
He means Rich lives in Bristol.


"Computers are useless they can only give you answers."
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 19th Apr 2004 18:01
well we know his xpos=65535...now for y and z...


Formerly known as "DarkWing Duck"
Powersoft
20
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 19th Apr 2004 20:59
i know the y and z



hope that helps

Just to add to the confusion.
Look at my avatar
Blue Shadow
20
Years of Service
User Offline
Joined: 6th Feb 2004
Location:
Posted: 19th Apr 2004 23:46
Narrows that down quite a lot doesnt it.


Visit the Code Monkey's website at http://www.freewebs.com/codemonkeystudios
DARKGuy
20
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 20th Apr 2004 01:16
Quote: "well we know his xpos=65535...now for y and z..."


LOL that's right

my z is 1024......now.....ypos?

Quote: "i know the y and z
+ Code Snippet
y>0
z>0
hope that helps
"


LOL!!!!!!!!!!!

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 20th Apr 2004 17:54
we don't need to know your ypos becuase we know you can't fly!!! so we now know exactly where you are...(now to raise some money for the trip over and some weapons to... )


Formerly known as "DarkWing Duck"
DARKGuy
20
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 21st Apr 2004 10:17
lol!!!!!! I laughed a lot with that....so.........rich is gonna kill me after all....... poor me and I was about to update my web page....

BTW the URL is......I'd better tell you all when I update it

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
LordAnki
20
Years of Service
User Offline
Joined: 22nd Apr 2004
Location:
Posted: 26th Apr 2004 01:49
no, it would be unethical and Rich would get alot of flaming if he banned you just for doing something better than his. Good job btw.
DARKGuy
20
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 26th Apr 2004 03:33
yeah you're right thanks

BTW I like your avatar...Vahn from Zoids right? nice series though

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
Arkheii
20
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 26th Apr 2004 06:05
Quote: "no, it would be unethical and Rich would get alot of flaming if he banned you just for doing something better than his. Good job btw."


lol!

Quote: "BTW I like your avatar...Vahn from Zoids right? nice series though "


He got lucky at the end of the series. Everyone knows Raven can kick Vahn's booty any time. btw, I have the Tomy version of the Berserk Fuhrer.


"I am nobody's bitch. You are mine. I don't need to know you. You only need to know me."
David Brand
20
Years of Service
User Offline
Joined: 10th Mar 2004
Location:
Posted: 26th Apr 2004 10:25
HOLY CRAP, WITH YOUR SCROLLING CODE, I GET 1512 FPS!!! lol

im cool!
DARKGuy
20
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 26th Apr 2004 15:37
Quote: "HOLY CRAP, WITH YOUR SCROLLING CODE, I GET 1512 FPS!!! lol"


OMG!!!!!!!!! That's what I call NICE!!!!!

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 29th Apr 2004 00:50
!!!1!!!11!!!!MUST WE USE ALL CAPS AND EXCLAMATION MARKS OMG THEY RULE!111!!11!!!!!!!!!!!!!!!!!1~!1!1!!!!!!!!!!!!!

Heh...well had to get that outa my system after reading this post filled with

OMG!!!!!

Well anyhow, I highly doubt Rich is going to ban you just for editing his code a little bit You told the people where you got the idea, that should be enough ^_^

RPGamer


We need help! Email us! join@eternaldestinyonline.com
DARKGuy
20
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 29th Apr 2004 17:17
Quote: "!!1!!!11!!!!MUST WE USE ALL CAPS AND EXCLAMATION MARKS OMG THEY RULE!111!!11!!!!!!!!!!!!!!!!!1~!1!1!!!!!!!!!!!!!
Heh...well had to get that outa my system after reading this post filled with
OMG!!!!!"


hummmmm you mean this?

Quote: "OMG!!!!!!!!! That's what I call NICE!!!!!"


sorry

btw hehe thanks RPGamer ^_^. Now my secret game is fully completed...I'm gonna see when I'll upload it to a server and put the link here...my first game in DB!

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 11th May 2004 21:54
I'm surprised my scrolling credits code even worked in DBPro! It was written years ago when DBPro was just a baby idea in the brain of Lee Bamber

DARKguy - nice one.

Cheers,

Rich

With our species on the edge of extermination,
with no prospect but a horrible death,
we actually played games.
DARKGuy
20
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 16th May 2004 05:03
hehe rich!! how're u?

Quote: "I'm surprised my scrolling credits code even worked in DBPro! It was written years ago when DBPro was just a baby idea in the brain of Lee Bamber"


lol!

hehe thanks

:: Pentium 300 Mhz, old 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98 SE, Sound Blaster AWE 32 ::

Login to post a reply

Server time is: 2024-05-13 02:01:30
Your offset time is: 2024-05-13 02:01:30