I have problems with my cameras. What can I do about it?

0 favourites
  • 2 posts
  • So I watched tutorials about how you program a camera for a side scrolling 2D platformer and even tho I exactly did it like the people in the videos, I just won't work. Somehow an Item and my health bar (which didn't had any coding at all) moves along the camera, but not my player character who is supposed to. They aren't even on the same layers. What I do wrong and what can I do to fix that?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Here are two different ways to make a camera

    1. Give the player's character the ScrollTo behavior

    Simply give the player's character the ScrollTo behavior. This is quick but is limited.

    2. Give a separate invisible camera object the ScrollTo behavior

    Make a an invisible sprite object for your camera. Give it the ScrollTo behavior. Now make the camera follow the Player's character

    --

    Regarding your health bar and item, check the layers' parallax settings. A parallax setting of 0 x 0 will result in objects that never move in relation to the camera- they stay fixed in 1 spot on the screen

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)