Physics and Scroll-To

Get help using Construct 2

Post » Fri Jul 26, 2013 3:02 am

I have a very simple project that creates an impulse on the rectangle towards a click/touch. The rectangle encounters a nonexistent barrier when two conditions are met.
1. The rectangle has Scroll-To behavior.
2. The layout is larger than the screen size.

The barrier is essentially a right wall near the middle of the screen and a floor near the middle of the screen that it cannot move past. I have only tested in Chrome.

If I remove the Scroll-To behavior it works fine. If the layout is the same as the screen size it also works fine.

I was hoping to have levels larger than the screen size and have the screen scroll with the player. Any one have an idea what the problem is?


Let me know if the link does not work.
https://www.dropbox.com/s/tt8k15w7wlvkk0g/Empty.capx
B
26
S
8
G
2
Posts: 33
Reputation: 3,645

Post » Fri Jul 26, 2013 4:53 am

You can't see ScrollTo behaviour on a blank background. Put in a tiled background for the moment so you can see the movement.
ImageImageImage
B
71
S
19
G
179
Posts: 3,478
Reputation: 102,672

Post » Fri Jul 26, 2013 6:17 pm

Wow that was a silly mistake I made. Thanks, Blackhornet.
B
26
S
8
G
2
Posts: 33
Reputation: 3,645


Return to How do I....?

Who is online

Users browsing this forum: ladjuric, luckyrawatlucky, lukedevel, m0nkeybusiness, tunepunk and 12 guests