Scripts / Text Bubbles question?

Author
Message
Honkeyboy
3D Media Maker
8
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 11th Feb 2021 15:28
Think i may have asked this before but I'm unsure, is there a way to create a text bubble over a character? e.g i have a sleeping entity and want to create a bubble over its head/body with "zzzzzz" and then if that entity is destroyed for the bubble to be destroyed also. I have quite a few characters that i would like to use this on and have been playing around with spites but not been able to attach them to a said entity? Anyone have any ideas how i can achieve this please?
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
XFX R5 2gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 11th Feb 2021 15:46
Not sprites, use decals or particles.
Been there, done that, got all the T-Shirts!
PM
Honkeyboy
3D Media Maker
8
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 11th Feb 2021 18:08 Edited at: 11th Feb 2021 18:09
Ahh yeah sorry AM i meant decals how would i get them to appear above the character/entity instead of just on the screen ? didn't you do 3d text? would it be the same or similar?
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
XFX R5 2gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 11th Feb 2021 19:38
You just have to place them above the character.

i.e. g_Entity[ e ].x & g_Entity[ e ].z give you the characters position, g_Entity[ e ].y gives you their height so if we assume the characters are 80 units high:
g_Entity[ e ].x, g_Entity[ e ].y + 80, g_Entity[ e ].z would give you a reasonable stab at a position for the particle or decal.

Personally I think particles are better as you can have up to 4096 frames in a single sheet, so you could easily do all the speech bubbles for your entire game in a single particle sheet and one emitter will easily produce all the ones you need to display.

You could even be ultra fancy and have one sheet for speech bubbles and another for though bubbles so as one character is spouting off another could be thinking "what a load of ...".
Been there, done that, got all the T-Shirts!
PM
Honkeyboy
3D Media Maker
8
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 11th Feb 2021 20:00 Edited at: 11th Feb 2021 20:02
Might be a little complex for me writing a script to control that lot but will have a play with what you have given m8 thanks for that. I've written most the new scripts for the new version of asgood just 3 left imps burning cars, imps mugging oldies, and the text one, unless something else barmy pops in there.....which knowing me it probably will lol.
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
XFX R5 2gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on

Login to post a reply

Server time is: 2024-05-02 10:02:19
Your offset time is: 2024-05-02 10:02:19