loading two game engines in the same HTML within separate CANVAS

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JRmexico

I am working on an application thata requires to load 2 independent animated characters on indepenmdent separate HTML CANVAS that respond to events on yet another independent CANVAS.

Is there a way to do this?

Thanks for your help!

:bust_in_silhouette: Reply From: eska

You can use the JavaScript API to create one Engine instance for each canvas: Customizing the Web export HTML page — Godot Engine (3.0) documentation in English

To communicate between canvas and the webpage’s JS context, you can use JavaScript.eval(): Exporting for the Web — Godot Engine (3.0) documentation in English