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 / Text Balloons for RPG

Author
Message
Hobgoblin Lord
19
Years of Service
User Offline
Joined: 29th Oct 2005
Location: Fall River, MA USA
Posted: 29th Oct 2005 22:51
Hello, here is a function to create the text balloons you see in RPGs. The code before the function can be scrapped it is just to demo the function. Tell me what you think, don't worry I can take it.
Hobgoblin Lord
19
Years of Service
User Offline
Joined: 29th Oct 2005
Location: Fall River, MA USA
Posted: 30th Oct 2005 01:04 Edited at: 7th Mar 2006 04:01
hmm seems the code did not post sorry here it is
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 30th Oct 2005 03:57
Its alright.
Mr Underhill
22
Years of Service
User Offline
Joined: 23rd Apr 2003
Location: The Forgotten Worlds...
Posted: 30th Oct 2005 05:54
try [ code ] and [ /code ] without the spaces.

Modelling apps are like spaghetti: the only way to find the good stuff is to throw everything at the wall and see what sticks. ~Me
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 30th Oct 2005 21:58 Edited at: 30th Oct 2005 22:00
I like it. But the best way to get the exact size of text is just using "text width()" and "text height()"... those commands return numbers based on the current font and size. In Classic you won't see the text size change using print... but it's there with the "text" command.

Hobgoblin Lord
19
Years of Service
User Offline
Joined: 29th Oct 2005
Location: Fall River, MA USA
Posted: 30th Oct 2005 22:34
Thanks Grog, Don't know why i didn't use that, probably have been using len to long to think otherwise.
Hobgoblin Lord
19
Years of Service
User Offline
Joined: 29th Oct 2005
Location: Fall River, MA USA
Posted: 2nd Nov 2005 00:52 Edited at: 7th Mar 2006 04:02
Here is a newer version of the program taking Grogs advice into account.

Login to post a reply

Server time is: 2025-05-22 13:07:28
Your offset time is: 2025-05-22 13:07:28