Smoothed Dragging the Screen

1

Stats

1,436 visits, 1,811 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 30 Nov, 2015. Last updated 19 Feb, 2019

This is a simple addition to Predbite's dragging tutorial that adds smoothed drag.

Instead of sending the position of the scroll the calculations of (dragscrollx + dragmousex - touch.absolutelY), etc., it passed it to a variable for the camera position (x_campos, y_campos), and uses a lerp to smooth the movement to the camera position.

  • 0 Comments

Want to leave a comment? Login or Register an account!