How do I scroll to an object only when he is jumping

Get help using Construct 2

Post » Tue Feb 23, 2016 12:53 pm

Hello,

I'm making a vertical game.
It goes negative so upwards, but I only want to scroll to the object when it is moving upwards.
And when it is falling, the P.O.V has to be the same. Can someone give a solution :?:

Kind regards,

Niek Biesterbos
B
6
S
2
Posts: 114
Reputation: 874

Post » Tue Feb 23, 2016 2:15 pm

If (isJumping)
- system.ScrollToPosition(player.X, player.Y)

if you're going for a doodlejump sort of thing have 'isJumping' be something along the lines of player.VectorY < 0
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446

Post » Tue Feb 23, 2016 6:03 pm

@briggybros thnx!
B
6
S
2
Posts: 114
Reputation: 874

Post » Wed Feb 24, 2016 1:22 pm

@briggybros Using this method, it scrolls very laggy...
Any suggest?

Thnx
B
6
S
2
Posts: 114
Reputation: 874

Post » Wed Feb 24, 2016 8:42 pm

@Niek It shouldn't cause any lag, see this example: https://dl.dropboxusercontent.com/u/706 ... ample.capx
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446

Post » Thu Feb 25, 2016 9:12 am

@briggybros fixed it ;-)
B
6
S
2
Posts: 114
Reputation: 874


Return to How do I....?

Who is online

Users browsing this forum: Bro7hers, ketramtu18 and 7 guests