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 / Newbie Darkbasic user

Author
Message
CaiF_R
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 25th Jan 2003 10:34
I reasently got my copy of db and frankly i dont know where to start. I desided to make a intro/demo but i seem to be stuck. Iam printing text and using a bitmap or image or matrix as background. But how do i display a text and then make it dissapear after awhile without clearing the whole screen with cls? If i use cls the bckgrnd image is cleared too. I´ll just post the code aswell... but keep in mind that this is indeed my first program so... no laughing

REM An attempt to make a program with a purpose

REM The main functions
GOSUB HARDWARE_SETUP
GOSUB INTRO_BITMAP_BCKGR
GOSUB INTRO_MUSIC
GOSUB INTRO_TEXT
GOSUB TERMINATE

REM Setting up the hardware
HARDWARE_SETUP:
SET DISPLAY MODE 1024,768,32
SYNC RATE 30
HIDE MOUSE
SYNC ON
RETURN

REM Initialising the intro and music
INTRO_MUSIC:
WAIT 2000
LOAD MUSIC "someawsomemp3.MP3",1 : LOOP MUSIC 1
WAIT 4890
RETURN

REM Setting up background

REM INTRO_BITMAP_BCKGR:
REM MAKE MATRIX 1, 10, 10, 10, 10 // either a matrix...
REM LOAD IMAGE "coolbckgrd",1 // ... or some stupid pic
REM PASTE IMAGE 1,512,384 //... just trying stuff.
RETURN

REM Displays the owsome intro text
REM First we initialize the text...
INTRO_TEXT:
SET TEXT SIZE 70
SET TEXT FONT "impact"
REM ... then the text is printed"

CENTER TEXT 320,240, "[mAdE bY CaiF_R]"
WAIT 3000
CLS
WAIT 3000
CENTER TEXT 640,480, "dEMO = fUSiON"
WAIT 2000
CLS
WAIT 2000
CENTER TEXT 300,650, "lEAd dESiGNER = CariF_R"
WAIT 2000
CLS
WAIT 2000
CENTER TEXT 500,500, "lEAd ARtiSt = CaiF_R"
WAIT 2000
CLS
WAIT 2000
CENTER TEXT 500,300, "lEAd pROgGraMmeR = CaiF_R"
WAIT 2000
CLS
WAIT 2000
CENTER TEXT 512,384, "EnDiNg dEMO... -hOPEd U iNjOYed iT"
WAIT 5000
CLS
RETURN

REM Terminate the prog
TERMINATE:
PRINT "... READY TO TERMINATE"
WAIT 10
WAIT KEY
Newbi2basic
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 25th Jan 2003 13:25
Try typing
Backdrop on

then change CLS to sync

hope that helps

WOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!!!!!!!!

Newbi2basic IS BACK! you all thought id died and gone to Real Game tools did ya!
Newbi2basic
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 25th Jan 2003 13:26
BTW since there is no edit button the backdrop on will go in your hardware setup gosub

WOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!!!!!!!!

Newbi2basic IS BACK! you all thought id died and gone to Real Game tools did ya!
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 25th Jan 2003 15:08
^^^Hes not a newbie TRUST ME^^^ (talkin about N2B)

Yea hes right. Just do that and youll probably be all set there buddy. Good luck!

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
CaiF_R
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 25th Jan 2003 18:18
Thanx alot guys

But there still semms to be be a problem with the text disappearing, but it helped me get on the right track.
btw what the difference on a "image" and a "bitmap"?
cant they both be pasted as a bckgrnd? And is there an alternative way to code it? Can i paste a image/bitmap when iam using a 3dbackdrop (backdrop is 3d, isnt it?)

Again thanx. People on this forum really is helpfull

(Iam from denmark. That may be the reason for my misspelling

Login to post a reply

Server time is: 2024-05-05 02:25:42
Your offset time is: 2024-05-05 02:25:42