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
101
S
32
G
11
Posts: 1,546
Reputation: 21,667

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
22
G
241
Posts: 3,734
Reputation: 134,494

Post » Thu May 01, 2014 8:02 pm

Nice, great idea. So simple :). Thanks
B
101
S
32
G
11
Posts: 1,546
Reputation: 21,667

Post » Thu May 01, 2014 8:07 pm

or use magiCam plugin ;)
ImageImageImageImage
B
157
S
66
G
42
Posts: 2,603
Reputation: 35,343

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
101
S
32
G
11
Posts: 1,546
Reputation: 21,667

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
66
G
42
Posts: 2,603
Reputation: 35,343


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], Kin, mickclarke, TRMG and 42 guests