Each Tick = Camera a bit above!

0 favourites
  • 6 posts
From the Asset Store
​2D Battle backgrounds (from above) is designed for battle or strategy games and are hand drawn.
  • Greetings there! ^.^

    Once again thanks for this awesome community!

    My wondering here is, well.. i guess it's simply!

    I want each tick for the camera to stay put on a 'character' for example

    Each tick - scroll to(Exa1.X, Exa1.Y) - BUT i want the camera to stay a bit above, i mean Y something so the camera is precisly above him but i cant get Y+something to work, what is the command for that??

    Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Okay explanation is a bit bad, to simply put it i want the camera to scroll to a target but not in the center of the target but just a bit above. Thats it :/

  • Create an invisible sprite called "Camera". Apply the Scroll On behavior to it and using events move the Camera sprite a little bit every tick. You can try to apply the Scroll On behavior to the character sprite if you want the character to travel more to the left and right, but it is unrecommended, because the Rule #5 of Construct is:

    THOU SHALL NEVER APPLY A SCROLL ON BEHAVIOR TO 2 OBJECTS AT ONCE

    You can try, though, I think it will work fine.

  • Hm... I see, i was thinking of Simply for the camera to scroll to object while adding +Y to it so it goes higher or lower depending on the situation tbh ;D tried with adding another image point on the sprite but i can't get the scrolling command to move to that image point i created!

  • There is no reason not to apply scrollto on 2 objects. All it does is select a point between them and scrolls to that.

  • this is simple just use your "scroll to(Exa1.X, Exa1.Y)"

    but have it look like

    "scroll to(Exa1.X, Exa1.Y+50)"

    or whatever amount of pixel height change you want,

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