Ashley's Forum Posts

  • The problem is by the time the "Wait" finishes, the loop has already finished, so the loopindex reverts back to 0.

    The new built-in functions can remember their parameters after a "Wait", but I don't think the previous example will work, because there is only one 'LocalLoopindex' variable which just gets overwritten. Instead try this:

    + System: On start of layout
    -> Functions: Call DoCount (Times: 100)
    
    * On function 'DoCount'
    * Parameter 'Times' (Number)
    ----+ System: Repeat Times times
    -----> Call DoRepeat (index: loopindex)
    
    * On function DoRepeat
    * Parameter 'index' (Number)
    -> System: Wait 0.1 × index seconds
    -> Text: Set text to index
    

    Since DoRepeat is called repeatedly, there are separate copies of the index variable which each remember their values after the wait, so it should work as intended.

    Or - just use an "Every" event or another different approach, this way is awkward...

  • Can't you just set the source of the Video object?

  • Personally I'd go with a WebSocket - the node ws module is pretty straightforward (assuming you're already familiar with HTTP), and setting up a secure WebSocket is no harder than setting up a secure website - a WebSocket connection starts with a HTTP request, after all.

  • They're basically attached as if they are <script> tags, but in worker mode it uses importScripts() instead. It shouldn't matter either way, basically they just run in the same context as the runtime.

    Minification is an interesting question and not something I've fully figured out yet, but I suppose yes, if you enable minify it will minify all your own JavaScript too. That means you need to take in to account how to write minify-proof JavaScript.

  • There's an existing feature suggestion for this.

  • Please report any such issues on the bug tracker following all the guidelines otherwise it cannot be investigated. Beta releases are for testing purposes and can have stability issues so we recommend backing up any important projects you use with beta releases. (As with any digital work, it is important to take regular backups anyway.)

  • Please report any such issues on the bug tracker following all the guidelines otherwise it cannot be investigated. Beta releases are for testing purposes and can have stability issues so we recommend backing up any important projects you use with beta releases. (As with any digital work, it is important to take regular backups anyway.)

  • The feature was redesigned as explained in the blog post Construct 3's new redesigned functions. We also published a video summary and highlighted it in the release notes.

  • Use the Browser object to invoke a download.

  • It's not supported yet but we'll add a way to access them in the near future.

  • FYI we'll add a method to call functions from the runtime interface directly in the near future.

    • Post link icon

    Welcome to the Scripting forum! This is where you can discuss the use of JavaScript coding in Construct, also known as the scripting feature. It was announced in the blog post Introducing JavaScript coding in Construct.

    Documentation

    There is a new manual section on scripting covering how the feature works. This will be updated as more scripting features become available.

    If you already know JavaScript, also check out the Construct for JavaScript developers quick start guide which is a summary of what might be different about writing JavaScript code in Construct compared to other environments.

    Learning JavaScript

    We have a free official 13-part guide for complete beginners: Learn JavaScript in Construct!

    JavaScript is one of the most popular programming languages in the world, and as a result there are also tons of other resources across the web to help you learn it. While you can post questions about the JavaScript language itself here, you may find it quicker to use existing resources on the web.

    We recommend the MDN web docs as a good reference to use for JavaScript, which has a section on Learning JavaScript which is aimed at complete beginners. Alternatively search the web to find other tutorials and getting started guides.

    There are also many other sites across the web where you can get help with general programming topics. StackOverflow is a well-known one.

    Of course, if you have questions about how JavaScript is used in Construct specifically, or about the functions and classes provided by Construct, this forum is a good place to ask.

    JavaScript is not Java

    Note Java is a completely different programming language to JavaScript. This is a common point of confusion. Try not to get the two mixed up. For example if you search the web for help on JavaScript, be sure to specifically search for JavaScript and not Java, otherwise you will get results for the wrong programming language!

  • 1 - (Speed / 1500)

  • It should be working now. Sorry for the inconvenience.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
    • Post link icon

    I think you have wilfully misunderstood my point. It was about regularly making commercial offers on a forum that generally works on a voluntary basis, not just about off-topic posting. I've outlined the rules and what I suggest you do to comply with them, and so I don't feel I need to discuss that point further.

    Finally, once again, it's not feasible for us to take in to account what happens elsewhere on the Internet. If anyone breaks rules in our official communities we are willing to investigate. Outside of our official communities you're on your own, and as any regular Internet user knows it's the wild west out there. You do not have to participate in any community if you don't like it or don't feel like it's worth your time (this one included). We endeavour to hold anyone who posts in these forums to the same rules, but we can only base that on what happens here. Closing thread.