ID:245946
 
Speech Bubbles by Forum_account
An easy way to create speech bubbles on the map.
6 fans · Created Feb 4 2012
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.
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.
replacing your font system with maptext saves a lot of speed
In response to Yut Put (#2)
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.
Its so easy to tweak it and make a say verb with it Nice job
In response to Forum_account (#1)
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