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 / chatting is fun but how

Author
Message
spiffy
18
Years of Service
User Offline
Joined: 3rd Jan 2006
Location: why r u askin
Posted: 25th Feb 2006 14:49
how can i make a chat program like in an rpg game so when you type in something it appears above character and in a box at the bttom of the screen

im a noob which ways up?
driftman
19
Years of Service
User Offline
Joined: 7th Aug 2005
Location: Somewhere Outside of Sanity
Posted: 26th Feb 2006 10:51
you'll want to use sprite for the bubble, and use the object screen x(object number) and object screen y(object number) commands

I have a lil' white jacket that lets me hug myself forever.
spiffy
18
Years of Service
User Offline
Joined: 3rd Jan 2006
Location: why r u askin
Posted: 26th Feb 2006 11:34
i hadnt had a clue what you just said

im a noob which ways up?
Mr X
19
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 26th Feb 2006 15:05
Youll have to create your own input command since the one in db stop the program. Just dont ask me how, I dont know. But I wish you goodluck with it anyway.
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 26th Feb 2006 17:13
I tried to make an input command that doesn't stop the program. When you hit enter though the screen goes black.



Insanity is just a state of mind
Jedi Lord
20
Years of Service
User Offline
Joined: 11th Jun 2004
Location: Jedi Temple
Posted: 8th Mar 2006 01:35 Edited at: 8th Mar 2006 01:36
Yes, I had study the input problem... once you hit enter it stop the sync for 50 millisecond and make it long enough to break sync(in my thought.)

anyway...

objnum is your darkbasic object number
object screen x(objnum)

Object screen x, y or z are to convert 3d to 2d like screen.

here my program to show example.


and my code is tested and sucessed.

Whoa... I like a shiny thing...
george_d
19
Years of Service
User Offline
Joined: 4th Mar 2005
Location:
Posted: 9th Mar 2006 10:34
try using entry$() and clear entry buffer to get your text
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 10th Mar 2006 01:36
One way to position text above the character is to make a plain above their head and texture it with the message. It means the messages get smaller as players move away. I don't know if you want this or not.



Insanity is just a state of mind

Login to post a reply

Server time is: 2024-11-27 04:40:16
Your offset time is: 2024-11-27 04:40:16