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
13
S
4
G
1
Posts: 5
Reputation: 1,337

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
49
S
24
G
107
Posts: 1,581
Reputation: 60,303


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 15 guests