How do I Delay ScrollTo

Get help using Construct 2

Post » Thu May 01, 2014 7:50 pm

I have an object in the middle of my screen with the 8way behavior. My layout is larger than my window, and I want ScrollTo to happen to my object. However, I want there to be a bit of a delay, in other words I want my object can to move faster than the scroll happens.

What would be the best way to accomplish this?
B
100
S
32
G
11
Posts: 1,552
Reputation: 21,612

Post » Thu May 01, 2014 8:01 pm

Attach ScrollTo to an invisible sprite and have it follow the main object at a slower rate than the main object.
ImageImageImage
B
71
S
21
G
220
Posts: 3,646
Reputation: 123,721

Post » Thu May 01, 2014 8:02 pm

Nice, great idea. So simple :). Thanks
B
100
S
32
G
11
Posts: 1,552
Reputation: 21,612

Post » Thu May 01, 2014 8:07 pm

or use magiCam plugin ;)
ImageImageImageImage
B
157
S
64
G
41
Posts: 2,590
Reputation: 34,640

Post » Thu May 01, 2014 8:20 pm

OK, MagiCam, one of the best plugins I have seen in a while. I really need to make a point to check the plugins forum more often. Thanks @shinkan, worked like a charm.
B
100
S
32
G
11
Posts: 1,552
Reputation: 21,612

Post » Thu May 01, 2014 8:28 pm

Your welcome :)
Honestly I can't work without it. I'm using it in 95% of my project. Even in my own blank template I've made that loads when I click New Project in C2 there are already plugins like Mouse, Keyboard, Function and MagiCam ;)
ImageImageImageImage
B
157
S
64
G
41
Posts: 2,590
Reputation: 34,640


Return to How do I....?

Who is online

Users browsing this forum: Clark Thy Lord and 1 guest