netdzynr's Forum Posts

  • I have speech-to-text working fine from microphone input, but is there some way to feed a speech audio file to the speech recognition plugin?

  • I'm trying out the new FileSystem plugin and am confused by the behavior I'm seeing. Using the "Show open file picker" action reads a Desktop file as expected, but using "Show folder picker" action with the Desktop folder results in a security error:

    Can't open this folder

    preview.construct.net can't open this folder because it contains system files

    I understand what the error seems to be indicating but how else is one supposed to get a list of available desktop files to open?

  • OK, here's one solution. The default CSS generated with the project (style.css) contains the following style which doesn't appear to be affected by settings in the editor. Removing/commenting out the indicated background color item (along with setting the bottom-most project layer to be transparent) causes the project to render without a background and show whatever is layered beneath it in HTML.

    html, body {
    	padding: 0;
    	margin: 0;
    	overflow: hidden;
    	
    	background: #000000; <---- remove this or comment out
    	color: white;
    }
    
  • I'm wondering if it's possible layer a Construct project with a transparent background above a separate browser canvas/process. I have a colleague who has a simulation running in Mapbox, which is running in an iFrame, and I want to layer my Construct project on top of it. I've found references in past forum posts about setting the overall background of a project to be transparent, but so far we've been unsuccessful. Every option we've tried results in a project with an opaque background. Is there a solution here?

  • I want to define a sprite's animation path using a timeline path with bezier curves, and have the the sprite rotate appropriately as it moves along the path. The Path Mode of the timeline set to Cubic Bezier and I have custom curves applied to the path.

    If I use the Move Along Timeline action, the sprite will rotate as it moves along the path, but it ignores any curves, moving only in straight lines between keyframe points.

    If I simply play the timeline using the TimelineController action, the sprite follows the bezier curves of the path as desired, but it doesn't rotate.

    How can I move a sprite along a bezier timeline path and have it rotate as it moves around the path?

  • After spending the last couple of hours trying to figure out why I can't navigate to a new layout (Construct seems to be bouncing back to the currently displayed layout), I'm wondering if the odd layout naming and/or internal layout list is the culprit:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • And what the heck is this all about...(See image)

    Im starting to think that all the bugs that Im currently trying to fixed are caused by this sudden automatic renaming of Layers.

    Agreed. I came to the forums to look up the new naming conventions because they're confusing and non-intuitive (especially all the punctuation characters appended to layer names). "Overridden" sounds a like a change was made to the layer that somehow makes it different than the source global layer. Isn't the point of a global layer is that it's ubiquitous? It shouldn't matter where you edit it in a project -- if you edit the layer in one layout, shouldn't the edits propagate throughout all layouts where the layer appears?

    Many common UI design apps (Figma, Sketch, etc) use this "override" naming convention to indicate the properties of a placed component have been modified from the original source component.

    I agree that continuing to use "global" or using an icon is better behavior than the current implementation.

  • Thanks Ashley.

    So following the logic explained in the article, it seems I should be able to manually edit the timestamp in offline.json, save the file along with edited text files, re-upload to the server, and then refresh the browser to get the new content. Trying this doesn't seem to work, but I'm hoping maybe it's possible?

  • oosyrag. Thanks for the response.

    I am using AJAX to retrieve the data from the text files. And when exporting as HTML5, the text files are exported along with the rest of the project files. But when running in a browser on a server, the project doesn't appear to access the text files, because if I change the data in either of the files and force-reload the browser, the Construct text contents don't change.

    I set up a simple project that shows what I'm doing:

    dropbox.com/s/reoz4nifpqqfhsa/FileTest.c3p

    What do I need to change?

    [ UPDATE ]

    After trying some alternatives, I determined clearing the browser cache seems to solve my problem. So apparently I need to add some code in the index page to disable caching.

  • I added 2 simple text files to a project who's contents I want read in at launch time. This set up works fine when running the project in the Construct editor.

    But when exporting to HTML5, it seems the text files are ignored because any changes I make to them never appear in the project running in a browser. In fact, the original file contents seem to be included in the exported project somehow.

    I know I'm missing something here, but what? How do I enable an exported project to read in the contents of external text files at launch?

    (the project is running on a local server under localhost and, aside from the external file issue, runs as expected)

  • winstreak Thanks so much. Assigning the Destination Out blend mode to the mask and making the mask the top-most object on the layer was the solution. I went through all the blend modes a thousand times, not sure why I didn't stumble upon that result. Thank you.

    FWIW, I only need to use a single mask object in my case, since the top edge of the slider thumb object is flat (not rounded). Tracking touch to change the height of the thumb works well.

  • Can anyone offer a suggestion for masking a set of objects or a layer?

    I'm trying to set up a rounded slider control shown in the screenshot. I need to make the rounded corners of the mask object (9-patch) transparent while at the same time masking the slider objects so the slider thumb appears rounded. I've tried dozens of blending combinations and enabling "Force own texture" of the layer, but I can't find the right combination of settings to get this to work.

    Any suggestions?

  • Didn't know about that behavior, thanks for the suggestion!

  • If I have a string like: 1,1,2,3,3,3,4,5,5

    How do I retrieve only unique numbers (or remove duplicates) from the string?

    The desired result would be: 1,2,3,4,5

  • "Situation" may be a poor word choice -- each mouse click event is taking place on separate controls and objects in a UI. Some of the controls trigger events, some of the controls trigger events but also trigger other controls, and some of the clicks occur on non-control objects in a layout.

    It's becoming increasingly difficult and messy to try to route all these events through a single mouse event handler, which is why I want to employ multiple mouse event handlers, unless there's some penalty/disadvantage for doing so.