- Home /
Double deltaTouch !?
Hi guys, I need a deltaPosition of a Touch.deltaPosition?
Is any way to do it?
wait.. you want the change of the change? If you want the aggregate of two deltaTouch okay, if you want the different between the some timed deltaTouch and some other deltaTouch, setup some variables and store it. Otherwise, what is your use case?
I need as many different (True) position of touch as possible. Right now I have just two position and delta position.
I need to draw on screen. I am spawning dots on every frame and every position I have. But when u draw too fast distance between dots is big. So it is not making line but just dots(when u draw fast).
Answer by Landern · Oct 08, 2014 at 07:16 AM
create a List, add it to each frame(ish)(would add some delay between the frames, each frame is nasty), observe in List.Count - 1 for last entry if needed for delta, entire list contains complete amount of positions based off some time you create, just be careful and optimize the process. Use List of Vector2 to recreate the drawing(like that mobile game i can't remember).
Your answer
Follow this Question
Related Questions
How to instantiate object at touch position? 3 Answers
Delta touch trembling 0 Answers
Smoother Android Movement with deltaPosition 1 Answer
Paddle script for Pong-based video game for Android 0 Answers