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 Professional Discussion / why does this keep happening

Author
Message
pinkvenom
23
Years of Service
User Offline
Joined: 14th Jun 2003
Location:
Posted: 14th Jun 2003 19:35
Im trying to get the users name and then print it to screen then after that i would like in green writing as well to start saying some background info as if it was being typed then take you to the main game but I cant get it to work.
It asks for name as thats all I have at momment but as soon as i enter it it just closes
andrew11
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 14th Jun 2003 19:39
That's because it's ending so fast, you can't see it! Add "Wait key" (no quotes) and it should wait until you press a key.

"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
pinkvenom
23
Years of Service
User Offline
Joined: 14th Jun 2003
Location:
Posted: 14th Jun 2003 19:52
Thanx andrew11 for that now how bout text colour and can you also tell me how to get text to strat printing below straight after well say 2 saec later then go to another area say the game.

Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 14th Jun 2003 19:56
man serious typo geiza there.
hehe [img] [/img]

Info Q.&statments corect@da time of going to pres. I acept 0 responsibility for typos gramaticaly incorect txt swering or pety complant tht u hve so just piss off unles u r anserin da Q.
andrew11
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 14th Jun 2003 20:10
First, the colors.



To stay on the screen for a certain amount of time, use



The final code should look like:



"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
pinkvenom
23
Years of Service
User Offline
Joined: 14th Jun 2003
Location:
Posted: 15th Jun 2003 14:29
Thank you for that and sorry about the typos I was in a hurry. Is there a way in DB Pro to make it look as though the text is being typed on screen possibely with some sort of sound with it.

MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 15th Jun 2003 15:06
Yes, as long as you want to do your own input routine...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
pinkvenom
23
Years of Service
User Offline
Joined: 14th Jun 2003
Location:
Posted: 15th Jun 2003 16:17
Well could you point me in the right direction please. [b])

andrew11
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 15th Jun 2003 17:02 Edited at: 15th Jun 2003 17:08
Here's a code I did a while ago:


You can get the sound here:
http://www.geocities.com/andrew11m/files/typesound.htm

"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
pinkvenom
23
Years of Service
User Offline
Joined: 14th Jun 2003
Location:
Posted: 15th Jun 2003 17:43
I tried to use it but it keeps going off screen as soon as I laod it also how do I get it to play the sound for each letter I want to appear on screen

pinkvenom
23
Years of Service
User Offline
Joined: 14th Jun 2003
Location:
Posted: 15th Jun 2003 18:04
I have got some code working now but at the end my wors seem to be joing up any ideas why this is happening



andrew11
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 15th Jun 2003 18:31 Edited at: 15th Jun 2003 18:42
That's exactly what it does.

Use it like this:

SYNTAX
texteffecttype(x,y,string$,delay#)
This will display each character with a delay of delay# in 1000th's of seconds and play a sound at the coordinates specified by x and y.

EXAMPLE
texteffecttype(1,1,"This is a type effect!",10)
This will display each character with a delay of 10 1000ths of a second and play a sound at (1,1)

Make sure you change the directory of the sound!

"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
andrew11
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 15th Jun 2003 18:41 Edited at: 15th Jun 2003 18:44
I see that you are using print. This should work:


I think this is what you wan't to do. Forgive me if it dosent work; I wrote it off the top of my head.


"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
pinkvenom
23
Years of Service
User Offline
Joined: 14th Jun 2003
Location:
Posted: 15th Jun 2003 18:50
works a treat just had to change the file line as im using win xp hme

one slight prob is when it types there is two words getting put together its Hello,chrisyour like that how do I change that [b])

Login to post a reply

Server time is: 2026-07-18 07:30:42
Your offset time is: 2026-07-18 07:30:42