Ashley's Recent Forum Activity

  • You do not have permission to view this post

  • As ever, please file an issue for such reports so we can properly investigate them.

  • The Array object has a number of features intended for one-dimensional arrays, because it's a particularly useful case to have a list of items. Push, pop and shuffle are some of the features oriented around that usage, but they can also be applied to 2D and 3D arrays.

    If you want to shuffle a 2D array, you should be able to do that by shuffling twice, first on the X axis (shuffling every row), and then on the Y axis (shuffling every column).

  • You can use the 'Enable/disable collisions' action in the Physics behavior for collision filtering.

    Integrating a physics engine with Construct is an advanced topic with lots of complexity. If you are asking for a simple code example, you probably won't get one - it's going to be complicated. As others have advised, by far the easiest thing to do is just use the Physics behavior, which already uses the Box2D physics engine. It also uses a WebAssembly build of the original C++ code for maximum performance.

  • (Moved thread from Construct 2 forum to Construct 3 forum)

    For what it's worth - Construct updated to use the Google Play Billing library v7 in r394, which was released over a year ago in June 2024. All releases with a higher number include the update, including r397.6 LTS and r440.2 stable. Exporting your project with any of those versions will then use the v7 library.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It looks like possibly it's a Construct bug, but I'm afraid it's not possible to help from just that information. If you can file an issue following all the guidelines, we could then investigate.

  • That's a third-party plugin and not the responsibility of Scirra. You'll need to contact the addon developer.

  • See the Addon SDK documentation on Cordova plugin dependencies. C3IDE is a third-party tool so I cannot provide any advice about that.

  • Sorry - should have screenshot more - I only run those events on the click of a button which is only enabled once the AJAX request had completed.

    It still looks wrong though - using 'Set response binary' has no effect once the AJAX request has completed. You must use that before sending the request for it to load in to the Binary Data object automatically when the request completes.

  • I was just trying that to see what happened because:

    Also results in "EncodingError: Unable to decode audio data"

    The image also shows incorrect logic. The Binary Data object remains empty until the AJAX request is completed. That means you must send the request and wait for 'On completed' to trigger before the Binary Data object contains the downloaded data. Only then can you use the Binary Data GetURL expression with 'Add remote URL'. In the actions pictured, you obtain the Binary Data URL before the AJAX request has completed, so you are giving the Audio object a URL pointing to empty data, which it will then fail to decode audio from.

  • BinaryData Set buffer to UTF-8 text AJAX.LastData

    That's wrong - it will incorrectly interpret the binary data of the audio file as UTF-8 text and most likely corrupt it. You don't need to do that to load the AJAX data in to the Binary Data object. When you use the 'Set response binary' action it does it automatically when the request completes.

    The Binary Data object's GetURL expression does pretty much the same thing as your JavaScript code, so it looks like it should then work.

  • If I read the API docs right, it looks like the response is just a raw binary download of the generated audio file. In that case it would probably be best to download it to a Binary Data object, using 'Set response binary' before the request. Then get the URL from the Binary Data object for the 'Add remote URL' action in the Audio object.

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,789,184 followers

Connect with Ashley

Trophy Case

  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • Forum Mega Brain Made 20,000 posts in the forums
  • x126
    Coach One of your tutorials has over 1,000 readers
  • x74
    Educator One of your tutorials has over 10,000 readers
  • x5
    Teacher One of your tutorials has over 100,000 readers
  • Sensei One of your tutorials has over 1,000,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x43
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs