How do I "Replay" a drawing?

Get help using Construct 2

Post » Fri Sep 30, 2016 10:40 pm

I am using the Canvas plugin to allow students to practise their handwriting.

I would like to be able to have the students draw on the app and then have the app replay their stroke formation. It would be very similar to this:
http://www.ictgames.com/writingRepeater/

Is this possible?

Any help would be greatly appreciated
B
14
S
5
G
1
Posts: 5
Reputation: 1,517

Post » Sat Oct 01, 2016 12:08 am

It is possible.

The most straightforward way would be to push the x/y coordinates of the input every tick into an array. To replay, just go through the array and draw from each saved coordinate instead of the mouse/touch input.

I don't know if there would be performance issues without trying. You can trade resolution/accuracy for performance by adjusting how often you save a set of coordinates.
Mistakes were made.
B
60
S
30
G
134
Posts: 1,949
Reputation: 75,375


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests