John Cutter's Recent Forum Activity

  • I've been researching this but it seems like most of the questions about centering are for web or mobile games in full screen mode. I'm creating a browser app.

    My app has a logo, some buttons, and about a dozen text fields. I'd like to get everything centered in a browser window for both PC and mobile (portrait). What is the best approach?

    I tried pinning everything to a sprite and then centering that sprite in the middle of the screen -- but that isn't working. (I'm setting the x coordinate of my framing sprite to: (ViewportLeft(0) + ViewPortRight(0))/2)

    Any suggestions?

  • Thanks for the reply, Ashley!

    Apple ban other browser engines on iOS.

    Interesting! The App Store has Bluefy listed as: "Bluefy - Web BLE Browser". Maybe it's built on Safari and then it just adds the Bluetooth on top of that.

    I know that Safari doesn't support Bluetooth, but Bluefy has allowed me to at least connect to a Bluetooth device.

  • This is related to a question I just asked in the "How do I..." forum.

    My project needs to use mobile Bluetooth and as that is not supported by Safari I am having to use a browser called "Bluefy" (which is available for Android and iOS.)

    My website/program was loading until I added a .webm sound call. Now I'm just getting a black screen. (It works on Safari - except the Bluetooth part, of course.)

    I thought maybe I could use a different format, but Construct seems to automatically convert all audio files to .webm Opus.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've written a short program that plays audio from a URL:

    - Add remote URL "https://example.com/test/test.webm" (type "audio/webm; codecs=opus") as name "voice"

    - Play "voice" not looping from Sounds at 0 dB (tag "voice")

    I've exported this code to my website and it runs just fine on my PC. Unfortunately, I need it to work on my iPhone, too. But when I push the PLAY button nothing happens.

    Any ideas?

    UPDATE: I just saw this bug: "Audio remote url doesn't work in iOS #4721". Ashley says the workaround was to make sure to include .webm files in the program. All of my audio files are .webm, so I know that's not the problem.

  • Thanks for all the replies!

    I should have been a little more specific about what I need to do. I have written a little tool that does two things:

    1) It records audio from my microphone

    2) It starts a timer, so when I press keys on the keypad I can save the timestamps, and the key values, in a JSON file.

    I have another program that starts a timer and PLAYS the audio files. Then I can look at the JSON timestamps to "sync" the audio file with my program. I have this working already, but the audio files are Mono, and Stereo would be much better.

    Is it possible to launch Audacity from Construct 3? I wonder if the timing would be a little inconsistent, though.

  • I want to record binaural audio so I bought a special microphone. Unfortunately, the audio recorder built into Construct appears to only be mono!

    Is there any way to record stereo audio?

    UPDATE: I should have been more specific in my initial question. I am looking for a way to record stereo audio using Construct 3. (Even if I have to use the Javascript feature.) It's part of a more extensive program.

  • I have created a Bluetooth-enabled device and I'm controlling it with a Construct 3 program. I'm planning to sell my device on Shopify and it would be great if I could embed my program on the product page.

    I can apparently embed a program using the Scirra Arcade, but is there any way to "hide" it? It's not a game, it's just a way to connect to and control the Bluetooth device.

    Is there another way to embed a C3 program?

  • I have a niche business idea that I think could do fairly well. It would involve me bundling an audio file with a data file, and selling these as "programs".

    I'd like to make a really nice-looking Shopify site and sell my programs there, and then have a button or link on Shopify that takes customers to my C3 Player program... which would be on a different website. That's not ideal, but I think it should work. Anyone see issues with that approach?

    Alternatively, I could create a website that includes my player program. But then I would need a shopping cart of some kind to handle the sales part. Five years ago someone mentioned using Snipcart... Has anyone tried that recently?

  • Okay, fixed my problem.

    I was using a tag when I downloaded the sound, but not when I *played* the sound. Once I set and used that second tag it worked great!

    Thanks, Jase00!

  • The project I'm working on uses external audio url, and I use "audio.playbacktime" very often for syncing objects to the music, which works well! I haven't had the same bug that you have described. Hmm..

    That would be awesome if it worked!! Thanks for the reply! Hmm. I must have been doing something wrong. Here's what I did:

    FIRST TEST

    1. I played a .webm file, stored on my website. I could hear the file playing.

    2. Every tick: Set text file to "Audio.PlaybackTime(tag)". (The text field just stays blank.)

    SECOND TEST

    1. I saved the .webm file to my project and ran it like a normal sound effect.

    2. Every tick: Set text file to "Audio.PlaybackTime(tag)". (As soon as I start the sound I see numbers climbing in the text field.)

    Let me try it again.

  • Because the audio object offers you Audio.CurrentTime or Audio.PlaybackTime(Tag) which you can compare against your timestamps.

    I'm not sure if it's a bug, but apparently "Audio.PlaybackTime(Tag)" doesn't work when you load a sound externally. (Using "Add remote URL".)

    Maybe I can simply use timers.

  • My application requires a vocal recorder. I looked at some of the code but didn't have a microphone to test it. I wound up buying a microphone that has really good stereo (it's almost binaural). Unfortunately, the audio recorder built into Construct is only mono!

    Does anyone know if this is a limitation of Construct? Or is it an HTML5/browser limitation?