I am pretty sure you can disable chat being shown with the enablefeatures function, then have a script loop through the players in the level, and draw using your bubble chat function.
A crude example that should work:
PHP Code:
//#CLIENTSIDE
function onCreated() {
// Enablefeatures except for chat text
enablefeatures(allfeatures-0x80);
// Begin looping
setTimer(0.05);
}
function onTimeout() {
// Hide Last Drawn Chat
hideimgs(200, 1000);
// Loop through Players in the level
for (temp.p: players) {
// Record their chat and trim it.
temp.player_chat = temp.p.chat.trim();
if (temp.p.chat != "") {
// Draw the Text over the player.
with (findimg(200 + temp.p.id)) {
x = temp.p.x + 1.5;
y = temp.p.y - 0.5;
style = "c";
text = temp.player_chat;
}
}
}
// Continue Looping
setTimer(0.05);
}
Obviously build from this example, and try to optimize the drawing routine instead of hiding and redrawing every time.
Other functions that may be of help:
onRemotePlayerChats(player_obj, player_chat);