Speech Bubbles

by Forum_account
Speech Bubbles
An easy way to create speech bubbles on the map. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Forum_account.SpeechBubbles##version=1

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Forum_account.SpeechBubbles##version=1

408 downloads
Version 1
Date added: Feb 3 2012
Last updated: Feb 20 2012
5 fans
This library provides a simple way to create speech bubbles. It defines a proc called "speech_bubble" for all atoms. To make a message appear next to any mob, turf, or obj, you just have to do this:

mob.speech_bubble("Hey! Look at this text!")

The speech_bubble proc takes additional parameters you can use to customize it. It also returns a /SpeechBubble object you can store a reference to and use to modify the object later.

Comments

Medz03: (Aug 25 2012, 12:25 pm)
Forum_account wrote:
I have plans to add a demo showing how to update the position of speech bubbles to make them follow mobs.

Any update on this? thanks

Dr.Penguin: (Jun 16 2012, 11:01 am)
Its so easy to tweak it and make a say verb with it Nice job
Forum_account: (Feb 4 2012, 8:49 am)
Yut Put wrote:
replacing your font system with maptext saves a lot of speed

I'm not sure how functional maptext will end up being. I do plan to create maptext-based modes for some libraries when the feature is included in a public build. That way you can use the library to create speech bubbles now, and when maptext is more widely available people can instantly make use of the feature without having to change anything (aside from updating the library).

I haven't kept up on how it works, but I'm not sure if there's any way to find out how much space the maptext will occupy. There might be ways to guess, but there'd be no way to be certain of how tall to make the speech bubble so it will fit all of the text.
Forum_account: (Feb 4 2012, 4:37 am)
I have plans to add a demo showing how to update the position of speech bubbles to make them follow mobs, but other than that I'm not sure what else to add. If anyone has any suggestions I'd be more than happy to hear them.