Can someone please help in recording movements while dragging an object and when the object is dropped the record event will stop and the recorded movement will be animated by Play button.
Can someone please help in recording movements while dragging an object and when the
Share
Set up an array that will store recorded information:
Set up a method that will add information to this Array:
Do this when you start dragging your object:
Do this when you stop dragging your object:
Do this when you click replay:
Storing your recorded data for later use:
You can use this method to convert your
recordingarray into a string:Which will end up something like:
You’ll then be able to use this to create your
recordingarray:Which works like so: