SpookyFM / hscript

Automatically exported from code.google.com/p/hscript
0 stars 0 forks source link

Is it possible to call an hScript function from Haxe? #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Ok, ideally I would be able to write some hScript code like:

hScript:String = "

function moveLeft()
{
    // Handle player moving left
}

function moveRight()
{
    // Handle player moving right
}
";

And then from within my Haxe be able to call
    hscript.interp().moveLeft();

I can't seem to figure out how to make it work.  It would be SUPER useful 
instead of having to write a separate script for each function...

Original issue reported on code.google.com by robertsh...@gmail.com on 27 Jun 2014 at 4:08