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 / "closeScreen" plus some extra functions [DBC] [should work for DBPro also]

Author
Message
Underworld 1020
20
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 25th May 2006 06:31 Edited at: 28th May 2006 08:23
The "closeScreen" function will allow you to add different screen transition effects to your programs. I've also included some other functions that are pretty useful too.

NOTE: Their are two versions for the "closeScreen" function; one for DBC, one for DBPRO.

Here's the functions:

drawSquare


drawVerticalLine


drawHorizontalLine


drawHollowBox


closeScreen - DBC VERSION


closeScreen - DBPRO VERSION


NOTE: The "closeScreen" function uses BOTH the "drawHorizontalLine" and "drawVerticalLine" functions.

Here's my favorite use of the "closeScreen" function (DBC):


NOTE: Try adding some ink commands to the "closeScreen" function for some more cool effects.
Something like this: (DBC)


NOTE: To make those examples work for DBPRO just switch to the DBPRO version of the "closeScreen" function.

I've tested all the functions quite a bit, but still their may be some bugs hiding somewhere. If you spot any, then let me know. ENJOY!

Carolina South
20
Years of Service
User Offline
Joined: 28th Sep 2004
Location: South Carolina
Posted: 25th May 2006 18:30
If you add a 'SYNC' before the line 'WAIT DELAY' then it
works fine in DBPro.

"Diplomacy is the art of saying 'Nice doggie' until you can find a rock." - Will Rogers

"The secret to creativity is knowing how to hide your sources." - Albert Einstein
Underworld 1020
20
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 25th May 2006 23:31
I just tried it in DBPro and the Sync command does make it work, but nothing like it does in DBC. The results are very different. I edited some of the functions to work for DBPro also, but it needs more work. I'll post up my work tommorow or late tonight.

Underworld 1020
20
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 28th May 2006 08:28 Edited at: 13th Aug 2006 11:51
Their are a lot of differences between DBC and DBPRO, even in the draw commands, but I figured it out. All the code in my first post works 100%, as far as I know. If you tried it in DBPRO before that wasn't the correct result at all, so try again. Keep in mind the examples do look much better with an actual image in the background.


[href]http://www.michaelstaertow.com/[href]
[href]http://www.cdbaby.com/cd/staertow/from/starpolish[href]
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 30th May 2006 02:18
Im not trying to be harsh but, youve pretty much just rewritten already existing commands. Its like doing this;



and saying you made a function that makes a 3D box. If you're just starting out with programming and youre trying to experiment then kudo's you're doing a good job, just, try to add some more options in the functions to make them have a use other than taking up more space than using the command alone.

- RUC'

Login to post a reply

Server time is: 2024-11-23 03:37:39
Your offset time is: 2024-11-23 03:37:39