Tracing an onscreen line for touch devices

Get help using Construct 2

Post » Thu May 02, 2013 5:21 pm

Hi everyone;

my team is making a Japanese language learning app for Android and iOS; and I would like the user to be able to draw a line onscreen to trace out a kanji character. There needs to be a line following the user's finger as he/she traces onscreen - the point being to learn how to write specific kanji characters.

Here is an example of what I mean in the second to last screenshot on this app:

Is this possible in Construct2? I cant find any documentation on how to do this and am currently stumped. Thank you for any help!
Posts: 2
Reputation: 154

Post » Thu May 02, 2013 6:50 pm

I've don simular things
have a invisible bullet with a very high speed
set angle toward touch.x & touch.y
have a 10 by 10 sprite and set position to touch.x and touch.y
have the bullet speed 0 if overlapping the 10 by 10 sprite
spawn a circle dot the size you want the line if bullet speed is greater than 0
this will spawn a dot every tick the bullet is moving making it appear as a line
sosensible2013-05-02 18:53:23
Posts: 514
Reputation: 10,291

Post » Tue May 07, 2013 5:28 pm

Thank you, I will give it a try!
Posts: 2
Reputation: 154

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests