The pan isn't working? Help!!!

Get help using Construct 2

Post » Mon Aug 26, 2013 8:19 pm

I want to be able to pan in my project and i have copied all events and vars from the pan example project into my one. It isn't working. Just to make sure it wasn't my project being difficult i created a new project and copied everything (the sprites, events, vars, even layout sizes and options) yet that doesn't work either. Here is my project:

https://www.dropbox.com/s/0jb8guw7ohoglvn/PhysicsGame.capx

Thanks for any help!
B
4
Posts: 16
Reputation: 282

Post » Mon Aug 26, 2013 8:33 pm

can you clarify a bit? I'm thinking you want the camera to scroll to the ball but I don't see anything on the event sheet to indicate that.
B
8
S
1
Posts: 31
Reputation: 598

Post » Mon Aug 26, 2013 8:50 pm

If you are trying to scroll turn off unbound scrolling and add something like:

every tick ; Go = 1 : Scroll to position x:lerp(scrollx, ball.x, 0.09) y:lerp(scrolly, ball.y, 0.09)
B
8
S
1
Posts: 31
Reputation: 598

Post » Tue Aug 27, 2013 12:04 pm

no, panning is where you can swipe to move round the screen... that is what i want.
B
4
Posts: 16
Reputation: 282

Post » Tue Aug 27, 2013 12:13 pm

Hi

I see no code for panning in the linked .capx file.

And your Layout Size is the same size as your Window Size, so there will be nothing to pan around in.

Could you share a bit more on what you want to achieve, then we might be able to help you out. Might try to illustrate it with a few screenshots and some arrows in paint, that always helps me at least.
B
20
S
6
G
4
Posts: 347
Reputation: 4,451

Post » Tue Aug 27, 2013 12:33 pm

...mr muscle2013-08-27 12:34:39
B
4
Posts: 16
Reputation: 282

Post » Tue Aug 27, 2013 12:34 pm

@cvp

Here is another link: https://www.dropbox.com/s/0jb8guw7ohoglvn/PhysicsGame.capx

And i want to pan. You know where you move your finger around the screen and then he window moves. Like in angry birds; you can scroll left or right the the window moves around the layout accordingly or in clash of clans where you swipe the screen and your screen moves also.mr muscle2013-08-27 12:35:05
B
4
Posts: 16
Reputation: 282

Post » Tue Aug 27, 2013 1:02 pm

I have added pan to your .capx

All the changes i have made are in the bottom of the code so you can find them.

I also changed the Window Size just so that you can see it pan. You can change that to whatever you would like.

Was that what you are looking for?
B
20
S
6
G
4
Posts: 347
Reputation: 4,451

Post » Tue Aug 27, 2013 1:08 pm

thanks, the project i was meant to upload didnt... it was a backup. Thanks a lot though.

@cvp
B
4
Posts: 16
Reputation: 282


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests