Draw shapes for input

Get help using Construct 2

Post » Mon Oct 31, 2016 4:48 pm

Hi Guys,
Today's google doodle looks super fun. You draw shapes for input. Is this possible to replicate in C2?
https://www.google.com/doodles/halloween-2016

https://www.youtube.com/watch?v=QRvriF49BJE

How??
B
40
S
15
G
4
Posts: 426
Reputation: 5,843

Post » Mon Oct 31, 2016 4:50 pm

What's the best example of an implementation on this forum?
B
40
S
15
G
4
Posts: 426
Reputation: 5,843

Post » Mon Oct 31, 2016 4:54 pm

some info i found:
http://www.codeproject.com/Articles/159 ... ecognition

I want an implementation that works on all sorts of shapes- anywhere on the screen.

Not just square vs circle, but also heart, flash, etc etc
B
40
S
15
G
4
Posts: 426
Reputation: 5,843

Post » Mon Oct 31, 2016 4:57 pm

I wonder if we can come up with a solution that uses a neural network training with
plugin-rex-ann-artificial-neural-network_t109290
used with
http://www.codeproject.com/Articles/159 ... ecognition

but not even sure where to start. Basically I want to tach the software how a gesture looks like by inputting it a number of times.
I assume that is how google did it
B
40
S
15
G
4
Posts: 426
Reputation: 5,843

Post » Mon Oct 31, 2016 5:32 pm

It's not that hard to detect simple movement.
On touch start set start variables to touch xy
On touch end set end variables to touch xy
If start xy is higher than end xy, then it's a downward slope, etc.

For something more complex such as multiple swipes in a single touch, try Podes gesture recognition plug.
Image ImageImage
B
169
S
50
G
169
Posts: 8,285
Reputation: 108,214

Post » Mon Oct 31, 2016 7:12 pm

I posted some questions there:
viewtopic.php?f=153&t=66773&p=1077389#p1077389
B
40
S
15
G
4
Posts: 426
Reputation: 5,843


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests