hey i want to make scrolling layer with inertia .
i found a post https://www.construct.net/en/forum/construct-2/how-do-i-18/scroll-layout-inertia-123308
i was very helpful but capx file give in this post is only work with C2 runtime not with C3 runtime .
Anyone know how how i will get same result in c3 runtime.
here the capx file link from post https://www.dropbox.com/s/wmxnfqjlo3an0h6/usingTouchSpeed.capx?dl=0
thanks in Advanced :D
Change all touch.SpeedForID(0) to touch.SpeedAt(0) and touch.AngleForID(0) to touch.AngleAt(0)
then it should work.
Thanks Man its working
Develop games in your browser. Powerful, performant & highly capable.
Asmodean
i want to limit the scrolling
eg: size of layout is 1080*4000
but i want to scrolling work only in 1080*3000 layout size
You have to restrict the scroll position with clamp.
Make a new event:
+ System: Every tick -> System: Set scroll Y to clamp(ScrollY,0,3000)
Thanks Asmodean