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.

Newcomers DBPro Corner / URGENT! IMEDDIATE REPLY NEEDED! Lol. Dark Basic Classic

Author
Message
GenTekZ
20
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Virtual Reality
Posted: 15th Jan 2004 05:02
Ok heres the deal. I got the program a lil while ago. Now im on my first GOOD game which is turning out really good. There is one problem though. (well more like 50 but only 1 i need help with at this moment) My intro right now is a little too long after to play it to much so i was wondering if any one has a code that will allow "If space bar key is pressed then go directly to..." this one part of the intro that will show the title. Please help! i think the command GOTO would work but i dont know where to make it Go To! lol.
Please Help!!!!!!

Sincerely GenTekZ

www.GenTekZ.tk
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 15th Jan 2004 05:11
if during your intro you are testing keys then just look for spacekey(), and if hit jump to the next portion of the intro. Oh and don't use goto, use gosub

-RUST-

GenTekZ
20
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Virtual Reality
Posted: 15th Jan 2004 05:28
well... i want it to jump to a certain spot but i dont know how to make it do so... any ideas?

www.GenTekZ.tk
PiratSS
21
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 15th Jan 2004 05:47
Ok, go to darkbasic. Open your source code. Put your cursor to the code that you want it to go to.

press Enter key twice. Type this: "Spacek:"
Now locate the place where you want to check if spacekey was entered, press Enter key twice and type "if spacekey()=1 then goto Spacek"

Dual AMD Athlon MP 2x1GHZ | IBM 15000Rpm SCSI 73.4 Gb X 2 | e-GeForce Ti4400 | Audigy 2 + 7.1 Surround sound | 17' Monitor | Ugly mouse
GenTekZ
20
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Virtual Reality
Posted: 15th Jan 2004 05:59
Thanks a lot man! that worked. Now i got another problem though. How can i have it so if this action happens then it will redirect me to this? like i die then it takes me back to start

www.GenTekZ.tk
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 15th Jan 2004 06:12


-RUST-

zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 15th Jan 2004 06:25
Give a man a label and he'll goto today:

Tell him to read the damn manual and he'll goto for the rest of his life.

----------

Spacek:
today:
AK47:

These are all labels and any non-reserved keyword can be used as a label. You have to do a little planning and place a label at your start location. At the place in your code where you have determined that your player has died, add a goto statement indicating your start location.
--
TAZ

CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 15th Jan 2004 09:04
don't have the energy to fight the GOTO boys anymore...
good luck, enjoy the spaghetti.


-RUST-

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 15th Jan 2004 10:31
functions R yor bestesth widdleth fwends.
the GOTO force is strong in this one.
TheSquid
20
Years of Service
User Offline
Joined: 29th Sep 2003
Location: Ohio
Posted: 15th Jan 2004 17:03
Since were on the subject of GOTO, one of my college professors told the worst joke I've ever heard. It was a C class, but it still relates here.....

He created a function called HADES and wanted to skip to it. So he coded:



I was the only person in the class laughing. He thought I was laughing with him though, so it was kind of embarassing.

Anyway..... Not to hijack the thread
GenTekZ
20
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Virtual Reality
Posted: 16th Jan 2004 00:23
Now i want to play a small movie in my game
the movie is a flash mx file and i dont know how to load it in the game then play it... any clue?


Also dont make fun of me for not knowing everything. Thats why im asking.

www.GenTekZ.tk
Represent
20
Years of Service
User Offline
Joined: 24th Dec 2003
Location:
Posted: 16th Jan 2004 00:28
I don't think you can play flash files in DBC. I know you can play AVI files though.
GenTekZ
20
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Virtual Reality
Posted: 16th Jan 2004 02:19
ok. scratch that idea for now then. Lets move on and before we go any further i just want to say thanks for all you helping me out.

Now... i want to make it so that i can be able to interact to other people (computer people that is). What do you think would be the best route to go. Should it be somthing like if i get this close they will automatically say somthing or would pressing a button near them work better althouh it may take more coding?

And how would it look for the one you think i should do?

www.GenTekZ.tk
BearCDPOLD
20
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 16th Jan 2004 04:07
Just save it as a .gif, DBC does gifs perfect as any avi.

Juvenile Industries
Current Project: KillZone(FPS)
Soon to come:An rts, and a snowball fight game
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 16th Jan 2004 05:33
robk has a flash plugin for DB.
GenTekZ
20
Years of Service
User Offline
Joined: 30th Dec 2003
Location: Virtual Reality
Posted: 17th Jan 2004 04:49
What is this plug-in for Flash you talk about. And where can i get it?

http://www.GenTekZ.tk

Login to post a reply

Server time is: 2024-09-21 15:26:33
Your offset time is: 2024-09-21 15:26:33