Store coordinate data from previous frame
in
Programming Questions
•
2 years ago
This may be elementary, but I'm trying to create an effect similar to pmouseX/Y, where data is stored into a variable (a float, in this case) from the previous frame, but for the X/Y coordinates of something other than the mouse. I need the previous frame's data stored in a variable that updates in draw().
Any thoughts on the most elegant technique for doing this?
1