Click&Drag to Pan Camera

Get help using Construct 2

Post » Tue Oct 16, 2012 5:02 pm

I haven't actually cleaned it up, probably could be done with less code.
B
22
S
7
G
3
Posts: 189
Reputation: 4,270

Post » Wed Oct 17, 2012 8:58 am

I tried ur code but not able to get the smooth scrolling , seems like i am missing something, Please advise.

Here is the capx , u might need debug plugin and function plugin.

http://dl.dropbox.com/u/80050021/PHTrial_1.capx

Thanks.
B
16
S
4
Posts: 248
Reputation: 2,267

Post » Mon Oct 29, 2012 1:42 am

bump , anyone had made this to kinetic/smooth scrolling or any ideas on how to do it ? these above suggestion doesn't seem to work.

some of the live examples i found in web,

Google Map, http://kineticscrolling.googlecode.com/svn/trunk/examples/sample.html

or someone really proficient in JS can make a cs2 plugin out of this jQuery plugin http://www.azoffdesign.com/plugins/js/overscroll which i think will be really useful for community or atleast me

or this http://the-taylors.org/jquery.kinetic/
B
16
S
4
Posts: 248
Reputation: 2,267

Post » Sat Nov 17, 2012 10:05 pm

I am willing to offer USD $100.00 if someone can help me implement the smooth kinetic iPad/iPhone like scrolling for my game. Send me a PM with the time u will take it to complete.

btw i tried this post suggestion and this post http://www.scirra.com/forum/how-do-i-create-an-ipad-ipod-scrolling-effect_topic52265.html but doesn't seem to make it work as i expected.tringio2012-11-17 22:09:38
B
16
S
4
Posts: 248
Reputation: 2,267

Post » Thu Nov 22, 2012 6:55 am

Here is the smooth scroll implementation Here is the final capx. https://dl.dropbox.com/u/80050021/SmoothScroller.capx , it really worked for my project , This has scrolling in the X direction , but u should be able to easily adapt to Y or both.

Thanks to "aurche" the member who helped me with this code.

Also the offer for $100 is closed now.
B
16
S
4
Posts: 248
Reputation: 2,267

Post » Sat Mar 30, 2013 10:24 pm

Anyone know how to get this working in all directions?

B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Sat Mar 30, 2013 10:24 pm

@tringio ?
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Sun May 19, 2013 6:52 am

I have written a tutorial on getting the touch based scroll with inertia (gradual slow down). I have been seeing a lot of people asking for this.
The entire effect is achieved with just 1 sprite and 14 lines of code.
Check it out here: https://www.scirra.com/tutorials/560/swipe-based-smooth-scrolling-with-inertia
B
27
S
6
G
6
Posts: 20
Reputation: 6,132

Post » Mon Sep 30, 2013 4:38 pm

@Tingio

Hey, Thanks for giving us the opportunity to have this here, this site and it's users are a blessing. ...But I have a question. Sorry if I sound like a noob, because I am. But I implemented the code given in the .capx and the scroll works smoothly, however, it is scrolling every layer. (As in the "frame" and the "background.") I structured everything in this particular layout like the "blackboard" example but to no avail. Any suggestions would be appreciated.

Thanks for your understanding.
B
5
S
1
Posts: 8
Reputation: 355

Post » Mon Sep 30, 2013 4:40 pm

In your background layer properties set paralax to 0,0.
That's probably all.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
53
S
16
G
8
Posts: 6,157
Reputation: 19,744

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: BipolarMike, Televangelist, totoe and 21 guests