How do I use Scroll to?

Get help using Construct 2

Post » Sun Mar 30, 2014 3:21 am

I am currently experimenting with having the camera follow the player as it moves along but the scroll to is not working for me, I have set the behavior to the player and when I preview It doesn't follow the player.

When the player goes of screen it doesn't follow, the player just goes off the screen.

Also another little question I will pop in here instead of making a new thread, I have particles following the player but they are coming from the wrong point, when I try setting the image point to different values it stays in the same place am I missing something?

Any help would be greatly appreciated!
B
5
S
2
Posts: 105
Reputation: 837

Post » Sun Mar 30, 2014 4:41 am

For the Scroll to behavior, you also need to set "Unbounded scrolling" in the properties for your layout to Yes. By default it is No, so the camera won't leave your layout.

You should go to your particle and every tick "set position to another object" and choose your player and then choose which image point it should follow.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Sun Mar 30, 2014 5:14 am

You can also set scrollTo on another invisible object, and pin that object at an offset to your player if you don't want the camera centered directly on the player.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583

Post » Sun Mar 30, 2014 6:37 am

Thanks for your replys greatly appreciated!

Wow the unbounded scrolling worked a treat, works great now so that problem solved thanks a lot!

C-7 - I have set the position every tick but the particles are coming out of the middle of the character instead of the back but I don't think I quite understand image points, I want the particles to come out of the back, but when I adjust the values of image point It stays the same.
B
5
S
2
Posts: 105
Reputation: 837

Post » Sun Mar 30, 2014 11:03 am

Sounds like you only have one image point, clicking on the plus button in the image point editor will add another image point that you can reposition as needed...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Sun Mar 30, 2014 2:02 pm

ah ok I will do it now thanks
B
5
S
2
Posts: 105
Reputation: 837


Return to How do I....?

Who is online

Users browsing this forum: Lordshiva1948 and 62 guests