[Plugin] : Unistroke Gesture Recognizer

Forum Home Forum Home > Construct 2 Development > Plugins for Construct 2
 Post Reply Post Reply Page  <12345 6>
Author
5,380 Rep
Post Options Post Options   Quote smitchell Quote  Post ReplyReply Direct Link To This Post Posted: 08 Feb 2012 at 4:17pm
@Pode, Can this be used to detect mobile gestures?
In memory of flash :'(
Back to Top
5,315 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Posted: 08 Feb 2012 at 4:31pm
@smitchell : for sure ! You just need to replace the "Mouse" object in my demo by a "Touch" object.
Back to Top
5,380 Rep
Post Options Post Options   Quote smitchell Quote  Post ReplyReply Direct Link To This Post Posted: 08 Feb 2012 at 4:43pm
Cool! I will have a go at this today :)
In memory of flash :'(
Back to Top
16,863 Rep
Post Options Post Options   Quote newt Quote  Post ReplyReply Direct Link To This Post Posted: 08 Feb 2012 at 7:05pm
Got it, working now.
You are a programer in my book.:)
Back to Top
5,315 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Posted: 08 Feb 2012 at 9:27pm
@newt : programmer, or coder, I don't think we settled that down in the other thread ! ;)
Back to Top
5,068 Rep
Post Options Post Options   Quote TL22 Quote  Post ReplyReply Direct Link To This Post Posted: 10 Feb 2012 at 3:52am
I don't really have much else to say other than I love this.
Back to Top
5,380 Rep
Post Options Post Options   Quote smitchell Quote  Post ReplyReply Direct Link To This Post Posted: 15 Feb 2012 at 8:53pm
Pode, Im trying to create a swipe gesture and just getting a massive headache, unfortunately I do not understand this plugin, I looked at your custom gesture capx but that did not help me. How would you detect a swipe gesture?

Thanks.
In memory of flash :'(
Back to Top
5,315 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Posted: 16 Feb 2012 at 11:18am
@smitchell : start by erasing all gestures inside the recognizer, and add a new gesture, named "swipe-left", for example, with that kind of points "584,185|584,185|584,185|584,185|577,185|566,185|548,183|548,183|535,181|521,179|508,178|502,178|494,177|487,177|481,177|476,177|473,177|471,177|466,177|461,177|454,177|448,177|443,177|438,177|434,177|426,177|420,177|412,177|405,176|400,176|396,176|393,176|390,176|387,177|379,177|373,178|368,177|365,177|357,177|354,177|350,177|345,177|340,178|336,178|334,178|333,178|332,179|332,179|332,179"
Now, when you detect that gesture with a confidence, say, over 0.75, it's a swipe left gesture.
If you still have some problems, you can post here your capx.
Back to Top
5,315 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Posted: 29 Apr 2012 at 5:20pm
@Nuberudi : you don't have to do it by hand. When you have a string like yours :
Quote
584,185|584,185|584,185|584,185|577,185

you can use the method "add new template" with that string. You have nothing to do with
Quote
new Template("xxxx", new Array(new Point(91,185),new Point(93,185),new Point(95,185)

because it's javascript code !
Back to Top
5,315 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Posted: 29 Apr 2012 at 5:22pm
I'm I crazy, or did I answered a message that vanished ?
Back to Top
 Post Reply Post Reply Page  <12345 6>

Forum Jump Forum Permissions View Drop Down