Move Custom thought bubble GUI?

Started by valter, Tue 27/10/2015 20:46:42

Previous topic - Next topic

valter

Greetings all,
if you want to use in the game Custom thought bubble GUI with Think() it happens that when the character is too close to the left or right, border of the bubble GUI it leaves the screen. The text is instead displayed correctly.
Custom thought bubble GUI can't be moved through code.

Valter


valter

#1
Using Say() the text always appears above the character but in this way you can't use the bubble.
Think() has a property, speech_bubble_width, which defines the maximum width of the text. This is set to 100 by default.
If the character is not too close to the edges the text is centered regularly but when it comes close to the right or left the property speech_bubble_width fails text placement.

 
 


Resizing Custom GUI according to the text content you might be able to improve the visual effect but unfortunately if the character is placed at the top of the screen, text appears covering the character giving a bad result graphic.
Then if you want to use the bubble is not convenient to use Custom thought bubble GUI but rather draw their sprite bubble (or use the GUI) and display them with text inside to the proper coordinates.

Valter

SMF spam blocked by CleanTalk