x


How could I create a dynamic cartoon style speech bubble?

I would like to start creating some dynamic pop ups as i interact with the world in my game. I'll mention that i'm interested in the iPhone version just in case suggestions have relevant performance issues.

I'd really like to be able to tap an object and have a pop up appear with text and perhaps simple icons embedded in.

I guess what i'm really asking is

  • the best way of dealing with this in a dynamic fashion
  • potentially supporting multiple simultaneous pop ups
    • suggesting needing to instantiate the popups rather than just use a single gameobject
  • how to embed icons with text
  • how to wrap the text/icon contents inside a suitable framed dynamic container
    • title suggests speech bubble but essentially just an attractive dynamic border
  • with performance suitable for iPhone

Cheers

more ▼

asked Dec 29 '09 at 02:11 AM

jimbobuk gravatar image

jimbobuk
1.1k 34 42 54

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

1 answer: sort voted first

Without considering too much, I would suggest using dynamic text in GUI text boxes positioned with Camera.WorldToScreenPoint.

For an example, take a look at how the crosshair is placed in the good old FPS tutorial and maybe mix it up with the chat example in the Networking tutorial.

Please post what ever you come up with.

more ▼

answered Dec 30 '09 at 06:50 PM

Nicolaj Schweitz gravatar image

Nicolaj Schweitz ♦♦
1.7k 19 26 57

Thanks, i'll take a look at the links.. I expected dynamic text, I think my main crux is how to layer up presumably a texture background for the frame, along with the text itself.. Icons embedded in amongst the text is perhaps a stretch but i added it in as it'd be nice, if its possible at all.

Cheers

Dec 31 '09 at 03:45 AM jimbobuk
(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:

x5086
x3693
x2000

asked: Dec 29 '09 at 02:11 AM

Seen: 3119 times

Last Updated: Dec 29 '09 at 02:11 AM