![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | exuin |
In my game, I want to the player to be able to interact with objects and have a dialogue box pop up with character portraits and stuff. I also want to be able to apply a shaking effect to the dialogue box. The dialogue box is on a separate canvas layer than the player. I tried applying a shaking effect to the Camera2D under the player node, but that just shook the player and the background instead of the stuff in the CanvasLayer. I tried adding a Camera2D as a child of the dialogue box, but when I made it current, the camera was pointed at the origin, so it didn’t align with the player’s current position.
How do I apply a shaking effect to the dialogue box while still showing the player’s current position in the background?