How do I make the Bark text flip horizontally when the enemy flips as well?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
totosavi
Posts: 4
Joined: Tue Aug 08, 2023 3:19 pm

How do I make the Bark text flip horizontally when the enemy flips as well?

Post by totosavi »

Hi everyone! I'm currently facing this problem that when the enemy flips horizontally to face the player, the Bubble Template Standard Bark UI doesn't flip along with the enemy. Does anyone know how I can solve this problem?
User avatar
Tony Li
Posts: 22118
Joined: Thu Jul 18, 2013 1:27 pm

Re: How do I make the Bark text flip horizontally when the enemy flips as well?

Post by Tony Li »

Hi,

How are you flipping?

If you're setting a Sprite Renderer's Flip > X value, it won't affect child objects.

If you're rotating the enemy 180 degrees, add an Always Face Camera component to your bark UI. (The default Bubble and Basic Standard Bark UIs already have this component.)

If you're negating Scale > X, also negate the bark UI's Scale > X.
totosavi
Posts: 4
Joined: Tue Aug 08, 2023 3:19 pm

Re: How do I make the Bark text flip horizontally when the enemy flips as well?

Post by totosavi »

Aw thank you again Tony! The problem is now fixed :D
User avatar
Tony Li
Posts: 22118
Joined: Thu Jul 18, 2013 1:27 pm

Re: How do I make the Bark text flip horizontally when the enemy flips as well?

Post by Tony Li »

Glad to help!
Post Reply