Fixed (unscrollable) actors don't stay with camera when moving from right to left

One level in my game goes from right to left. On this level the HUD items that should move with the player actor disappear when playing the game. The camera follows the player the same way it normally does, but anything that is in a layer that isn't scrollable, disappears.

This is very difficult to explain. Anything helps!

Thanks!

Comments

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    When you set up the scene, be sure to keep the hud items within the original camera box.

  • DerfMilarDerfMilar Member Posts: 27

    @RThurman said:
    When you set up the scene, be sure to keep the hud items within the original camera box.

    I changed the origin of my camera to be on the right side of the scene for this level. Is that not the correct approach to get the camera to start with the player? Thank you!

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    I just tested by changing the camera origin in the inspector. And you are right.

    Instead, put the hud items in the lower left of the scene as if the camera box were still there. (Don't move hud items around a large scene. Just keep them in the original lower left of the scene and let GameSalad do the heavy lifting.)

  • DerfMilarDerfMilar Member Posts: 27

    @RThurman just tested and that did the trick! Good to know. Many thanks.

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    @Dave Miller said:
    @RThurman just tested and that did the trick! Good to know. Many thanks.

    You are welcome!

Sign In or Register to comment.