Each Tick = Camera a bit above!

Get help using Construct 2

Post » Mon Apr 15, 2013 5:40 pm

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!
B
5
S
1
Posts: 70
Reputation: 809

Post » Mon Apr 15, 2013 5:42 pm

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 :/
B
5
S
1
Posts: 70
Reputation: 809

Post » Mon Apr 15, 2013 5:47 pm

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.
HARMLESS SIGNATURE THAT IS VIEWED BY OTHERS AS OFFENSIVE AND CONTROVERSIAL
B
14
S
3
G
3
Posts: 356
Reputation: 4,362

Post » Mon Apr 15, 2013 6:03 pm

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!
B
5
S
1
Posts: 70
Reputation: 809

Post » Mon Apr 15, 2013 6:41 pm

There is no reason not to apply scrollto on 2 objects. All it does is select a point between them and scrolls to that.
B
44
S
15
G
9
Posts: 1,096
Reputation: 11,013

Post » Tue Apr 16, 2013 10:01 am

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,
B
22
S
5
G
1
Posts: 81
Reputation: 2,271


Return to How do I....?

Who is online

Users browsing this forum: Braus, Draconinho, luisgmolina, Magistross, nedzad, nimos100, R0J0hound and 33 guests