hy, I learn how to scroll using this tutorial (link), but i don't know what should i do or change if i scroll from the opposite...anyone can help this? for example, in that tutorial, if i touch the screen and scroll from up to down, then screen will go down right?...but what i want is the opposite which is I want scroll from down to up, not from up to down...
sorry for bad explanation or bad english...
Develop games in your browser. Powerful, performant & highly capable.
lerp(self.X,self.X+self.DiffX,0.35) to lerp(self.X,self.X-self.DiffX,0.35)
lerp(self.Y,self.Y+self.DiffY,0.35) to lerp(self.Y,self.Y-self.DiffY,0.35)
Be aware that the logic in this tutorial will scroll faster on a faster device.