Dynamic code in the update function?

I was wondering if anyone has experimented with the user building their own story, or moving the character using a code generator like Google’s Blockly?

I was wondering if there is an example of the update function being changed during runtime and then the character/game updating?

I’m new to Phaser, but I really like what I’m seeing so far - thanks!

I got it figured out with the “eval(code);” function. Pretty simple.