Great JS examples, looking forward to more, the Scripting API details and community JS examples. Thank you for all the new features that have been coming out!
Great proposal to take advantage of the possibilities of the new C3 JS feature. There is a good educational coding aspect of adding more JS availability to C3, which is very welcome. In addition, Scirra, please also look to the more advanced JS users who this feature also targets, empower them to use the JS feature for very creative gamedev use (keeping with the understandable boundaries of the documented SDK.) For example, the Scriptable Object, Editor Properties Integeration and exposing the Draw replacement function would be very welcome. The changes such as adding a connection between JS/editor props may also make it easier for people to share their JS work with others who are still learning, but could handle dealing with the properties in editor instead of adapting and changing JS code directly. This is similar to how we handle GLSL effects now. We supply parameters / uniforms that game devs can use to modify GLSL shader parameters without having to know the GLSL shading language!
Can you try this test face api server and see if it works for you? Click 'Get Webcam' and then 'Face Detect' and wait a moment for it to initialize. Works for me w/ Chrome browser (with webgl support and decent GPU.)
kindeyegames.com/fra
Ok, that's a new error, let me see if I can track it down. Thanks for the report.
Agree on the callout, his JS add-on is very useful!
Just checking for more info, in case I can fix it. Did you try the example project in preview? It will not work in preview (due to how the model files are loaded.) It has only be tested on export and hosted on a local (or web based) webserver.
Scirra, thank you for this, great development and much appreciated! I am also looking forward to a JS snippet / file repository for folks to share their C3 JS work (a Scirra JS github repo?)
NIce post, great to understand the background and motivation for doing this cool little project.
Nice work on the new functions, including the new function map, allowing for more flexibility and the bug fix for JS callFunction parameters. C3 is really on a nice roll now.
Nice update, this will really help clean up function workflow. Would also be interesting if you could attach functions to objects, making objects even more self-contained. If attached and utilized with families, can make interesting OO behavior easily: Family Geometry, objectS Square and Circle. Square.Stretch(10), increase Width and Height by 10, Circle.Stretch(10), increase radius by 10. Easy call that does it to all picked figures: Geometry.Stretch(10) and each object does the right function depending on its own function.
Done. Overall it's pretty simple, need to tweak and tune a few parameters and your original sprite (particularly where the 'feet' of your sprite are in the image and some transparent pixels below that.)
You are welcome, happy game dev!
Thanks for the update, the recent projects list issue was making me a little crazy :) Nice work on the updates and bug fixes.
Nice work, fun to play with.
Nice debug aid.
Member since 22 Apr, 2016