ConstructWorldSync: C3 split screen / picture-in-picture lunacy [WIP]
This is just a silly experiment, a way to achieve picture in picture / split screen / multiple 3D camera views with Construct 3.It works by running the same project in three instances: a "primary" one and two "secondary" instances running in iframes. The "priamry" project instance synchronizes object states to the child projects (one way only) using iframe.contentWindow.postMessage. Please note that the project does not run in preview mode; at the moment you have to do a HTML5 export and run it on a local HTTP or remote HTTPS server.
Primary window controls
Right click to spawn / destroy an objects.
Drag with left click to move an existing objects.
Use mouse wheel to resize hovered object.
Shift + mouse wheel rotates the hovered object.
Misc controls
F: toggle full screen
R: reload
Status | In development |
Platforms | HTML5 |
Rating | Rated 5.0 out of 5 stars (1 total ratings) |
Author | Fodi |
Made with | Construct |
Download
Click download now to get access to the following files:
Comments
Log in with itch.io to leave a comment.
Very nice! Did you achieve it using some third party plugins or JavaScript? Or could you make it with vanilla C3?
By the way, thank you very much for purchasing my Tiny Sprite Font! :-)
No third party stuff, just some window.addEventListener(“message”) based light JavaScript inlined in the event sheets. I uploaded the c3p if you want to take a look, but beware, it’s not in the best state :)
Also, running the project in a preview seems to break it, so at the moment the only option is to make a modification, export the HTML5 version and run it on a local server (I use “npx http-server”) or deploy it online.
Cool, thanks. I will add it on my endless to-do later. The idea of having multiple views from the same game is something that I always put aside, but it might be useful for some time of games :-)
Also: thanks for sharing the sprite font along with a project file :) in 2 minutes the font was in my project with automatic spacing and everything 💪
Cool, I'm glad that that old project still works fine after all these years :-)