@f8thie Check out the Collision Detection Kit documentation. Basically you have to put your webcam on the stage and then add it to a collision group or list like so : var cam:Camera = Camera.getCamera(); var video:Video = new Video(320, 240); video.attachCamera(cam); conteneur.addChild(video); var list:CollisionList = new CollisionList(video);
It's fairly straightforward from then on. Good luck !
Very clever! I could see you turning that into a game for kids, like catching butterflies or cloud or such. They'd love it!
TheRichardAries 10 months ago 5
@TheRichardAries there are webcam games already.
Deroni76 9 months ago
For those wondering, the straight CDK library v 1.5 works fine with webcam input.
jpcot 11 months ago
@jpcot how can you put in the webcam input in it?
f8thie 2 months ago
Comment removed
jpcot 2 months ago
Comment removed
jpcot 2 months ago
Comment removed
jpcot 2 months ago
This has been flagged as spam show
@f8thie Check out the Collision Detection Kit documentation. Basically you have to put your webcam on the stage and then add it to a collision group or list like so : var cam:Camera = Camera.getCamera(); var video:Video = new Video(320, 240); video.attachCamera(cam); conteneur.addChild(video); var list:CollisionList = new CollisionList(video);
It's fairly straightforward from then on. Good luck !
jpcot 2 months ago
Comment removed
jpcot 11 months ago
Comment removed
jpcot 1 year ago
please put source file link...thanks
manirmrittik 1 year ago 2
put your source please...thanks
3dkelvin 1 year ago
Nice, students must explore this for DM. Thank you for sharing this.
cucumyut 1 year ago