saltybrains's Forum Posts

  • 5 posts
  • You're awesome!, both of you! - that worked, thanks so much!

    Here is a sample project overlaying a canvas on top of Construct's main canvas.

    https://www.dropbox.com/s/6lvbkhuq0uoupy3/CanvasOverlay.c3p?dl=0

    There were a few additional things you needed to do so the canvas would show.

    Filling the canvas

    The script that creates the new canvas also fills it with some color so you can see it, it is transparent by default.

    Giving the canvas an ID

    The script also gives the new canvas an ID so it can be targeted with a CSS selector

    Applying some styles

    A stylesheet is added using the Browser plugin. The stylesheet is in the Files folder of the project.

    The styles are very simple but are needed so the canvas is positioned somewhere visible. The main canvas takes up the whole screen and by default new content is appended below existing content so the new canvas was initially off screen.

    The styles I used for this bare bones example just force the canvas to stick to the top right, but you can change that.

  • thanks Ashley - I tried this, but can't get the canvas element visible... any ideas ? :(

    pretty please ? :) i have tried so much stuff and whatever i do, the canvas is never visible in front of the C3 layers... it is always hidden.

  • thanks Ashley - I tried this, but can't get the canvas element visible... any ideas ? :(

  • Any ideas how i can get access to a Canvas element via a javascript snippet ? from a layer or sprite object or otherwise - even if i can create one in realtime, where can i bind it to make it visible/useable ?

    I am trying to integrate an Antmedia JS client for receiving a WEBRTC live video feed.

    Would love some pointers - as i am new to Construct and don't know the JS structure yet and couldn't seem to find what i was looking for in the reference documentation.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • new to C3!

    How do I create and reference an 'object group' ? for example, i have a sprite with a text element over the top - which i would like to act as a 'group' and replicated many times.

    How do i create this group, and then how do i reference it ? (including in JS, such as runtime.objects.group.? or how?)

    thanks!

  • 5 posts