rborsuk's Forum Posts

  • So thank you for that article - it helped big time!

    The "easy" solution is to change the downscale setting

    In case anyone else needs to do this.

  • This question pops up again and again :)

    You can find an in depth explanation & solutions here

    https://www.construct.net/en/blogs/ashleys-blog-2/surprising-difficulty-1528

    So is the solution to just not use animation frames?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a sprite with about a dozen frames (they are simple shapes - diamond, circle, square, etc). Certain objects create artifacts when they are not animation frame 0.

    For example,

    Notice the right of the diamond in the top sprite. This is frame number 13. I took the sprite and cloned it. Deleted all the frames in front of the diamond to make it number 0. Same size (100x100 - scaled to 20% to make it 20x20) and placed it underneath. When it is frame 0,it doesn't artifact.

    These frames are simple black lines drawn to make a diamond. Transparent background.

    This is driving me crazy. I've seen it with other shapes that are not frame 0.

    Any thoughts would help.

  • I'm gettting the following error during minification (simple and advanced give the same error)

    My other programs minify fine. I'm including a script which has already been minified in the project (maybe that's the cause?). Is there a way to exclude files from minification from the project manager?

  • I've used the sample project (Screen Recording Example) and have tried changing the format of the GameRecorder object from Auto to MPEG-4 H264 on both the latest versions of Chrome and Firefox and both give the error of

    'MediaRecorder': Failed to initialize native MediaRecorder the type provided (video/mp4) is not supported.

    Doesn't make much sense because it's an option to select. Has anyone seen this work? Am I missing something?

    Chrome supports MP4 and so does the newest Firefox.

  • Aaahhh. Thank you for the reply. Better then chasing rabbits. We'll come up with a work around.

  • Maybe I wasn't clear. I've attached a sample project to show the problem.

    I want to record just the drawing canvas, not the whole window.

    I was hoping to use captureStream to do that.

    Here's my example project showing the gamerecorder capturing the whole window, not just the canvas.

    dropbox.com/s/mrur7ipr9aip7k4/Test%20Record%20DrawingCanvas%20generated%20image.c3p

  • Is there a way to use captureStream with a canvas?

    Would like to be able to do the following:

    var videoStream = canvas.captureStream(30);

    Game recorder does the whole window which kind of hurts when you need just the canvas.

    Tagged:

  • Here's the sample project if someone wants to take a look.

    It should generate a simple powerpoint file if it works. It uses the Pptxgen library. I've tested the javascript on codepen.io before putting in construct.

    mediafire.com/file/l6x0riyfa5uukcz/Test_PPT.c3p/file

  • I'm trying the following code and it gives an error that PptxGenJS is not defined.

    // Import any other script files here, e.g.:

    // import * as myModule from "./mymodule.js";

    import * as pptxgen from "https://cdn.jsdelivr.net/npm/pptxgenjs@3.6.0/dist/pptxgen.bundle.js";

    runOnStartup(async runtime =>

    {

    // Code to run on the loading screen.

    // Note layouts, objects etc. are not yet available.

    runtime.addEventListener("beforeprojectstart", () => OnBeforeProjectStart(runtime));

    });

    async function OnBeforeProjectStart(runtime)

    {

    // Code to run just before 'On start of layout' on

    // the first layout. Loading has finished and initial

    // instances are created and available to use here.

    //runtime.assets.loadScripts("https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs@3.6.0/dist/pptxgen.bundle.js");

    runtime.addEventListener("tick", () => Tick(runtime));

    }

    function Tick(runtime)

    {

    // Code to run every tick

    }

    export function pptxdemo()

    {

    let pptx = new PptxGenJS();

    let slide = pptx.addSlide();

    slide.addText("This is an amazing demo", {

    x: 0,

    y: 1,

    w: "100%",

    h: 2,

    align: "center",

    color: "0088CC",

    fill: "F1F1F1",

    fontSize: 24,

    });

    pptx.writeFile({ fileName: "PptxGenJS-Demo" });

    }

  • Is it possible to use the HTML-DOM color picker with this plugin?

    <input type="color">

  • You can maybe use "set from json", or just make a second Tilemap object.

    Yeah, I'm leaning towards just creating the two different tilemaps. It makes me think though, how do you know what object properties are available at runtime as either read-only or r/w?

  • Is there a way to change tilemap tile size during runtime? I want to change from 32x32 to 16x16 and back again.

  • Form Controls always on top.

    When using the dropdown example with a button form control it always shows on top.

    This is the start

    This is with the dialog (dropdown) on another layer

    This is with the buttons z-order on the bottom

    Any thoughts other than hiding controls? It seems to do this with all dialogs.

  • rborsuk New version available with an example of a simple dropdown list.

    Awesome Aekiro, it's great to have a developer who's active and responsive!!

    Thank you so much!!