x


Multiplayer " killed " messages

I'll cut right to the chase. We've got a multi-player deathmatch game. We would like to implement a box on the screen that recieves and displays text updates when a player kills another player, in a similar fashion to CounterStrike or TF2 (no graphics, through, just text.

I've been writing so much script at this point that I'm not able to come up with anything. Essentially it would be like a chatbox that doesn't allow user input, but the server could send strings of text to it that it would then display to all players. Each update would push the previous text string upwards, but only to a certain height. If the box goes very long without any updates, all the text would fade, but reappear once an update is recieved. Here's a visual:

(First update gets sent)

"PlayerX has killed PlayerY!"

(Next update gets sent)

"PlayerX has killed PlayerY!" <---gets pushed up the screen a line
"PlayerZ has killed PlayerX!" <---new message appears below old message

So, any ideas on how to implement something like this?

more ▼

asked Apr 22 '11 at 05:46 PM

Setzer gravatar image

Setzer
3 2 2 3

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Plain old GUI.Box with a style that has the anchor on the bottom?

more ▼

answered Apr 22 '11 at 06:00 PM

StephanK gravatar image

StephanK
6k 40 53 93

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x713
x84
x64
x59
x12

asked: Apr 22 '11 at 05:46 PM

Seen: 816 times

Last Updated: Apr 22 '11 at 05:46 PM