christina's Recent Forum Activity

  • So Ashley I know you've been saying that Google should fix Android to have lower latency. It seems they have

    android-developers.googleblog.com/2021/03/an-update-on-androids-audio-latency.html

    And it's evident in apps like Real Guitar on Android, where sounds play immediately after a touch event. On the same mid range phone, a simple construct 3 test apk produces 0.3 to 0.4 seconds of latency between touch and sound played. That's such a long delay, you can definitely hear and feel it.

    However, even google seem to be recommending an open source library called oboe.

    developer.android.com/games/sdk/oboe/update-build-settings

    Is there a way to use this in c3?

    Since my device and Android can perform with next to 0 audio latency (see Real Guitar), doesn't that mean that Construct 3 is lagging behind the times? We can't blame it on Android or the devices any more.

    Thank for reading

  • I've been told that this is really good for real-time music games and apps (such as drum pads, etc)

    Is there a way Construct 3 could use it?

    github.com/floatinghotpot/cordova-plugin-nativeaudio

    Ashley?

    ty!

  • Thank you for trying R0J0hound! If you can't do it, I don't stand a chance. But thank you also for the tutorial, that makes a lot of sense and at least I know where to start 🥰

  • Hi everyone. So I've been asked to accomodate adlib music files, it's an old music tracker format.

    Apparently this is a javascript/ webaudio plugin that can play those files:

    bitbucket.org/wothke/adplug/src/master

    but I have no idea how to use in inside of C3.

    Any ideas? I would kill for a tutorial on how to take all those useful javascript libraries from github and use them inside C3. Thank you!

  • Yes, cos splits the axes of movement to their horizontal and vertical components.

    The lerp idea is excellent, thank you so much dop2000!

  • Thanks dop2000

    Your method would allow 45 degree paths to be a lot faster than 90 and 270 degree paths, which feels kinda unrealistic.

    For now I'm doing clamp(60*abs(cos(sprite.Pathfinding.MovingAngle)), 30,60)

    but I was hoping there would be a less hacky way?

  • I'm simulating a view that's not 100% top down (for a point and click game), and I'm looking for a way to slow down the Y component of the sprite's speed

    Any ideas?

    Thank you!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sorry for necroing the post, but I have 2 devices that do support low latency on a number of audio apps, but I can't get them to, using C3.

    Ashley an entry for latency in audio properties, after the already very involved 3D audio positioning settings doesn't sound like too much overhead to me. And new users won't even touch it. Could you implement it please? Latency on Android has been a problem for years, and it's good that Google are on it, but I would like to have access to that property please. And if possible give end users a way to experiment with it.

    In some cases stuttering is *not* worse (such as tiny samples or a metronome app), and any way I look at it, that property is useful, even when all devices become 0 latency.

  • I was wondering AllanR why r0j0's code for pasting to clipboard doesn't work in native C3 javascript, but only in browser> execute javascript

    My guess is something isn't implemented, but what? Can you make it work outside the browser object?

    EDIT: Ah I figured I'd use your solution with a global string,

    1| set imgURL to DrawingCanvas.SavedImageURL

    2| img.src = runtime.globalVars.imgURL

    to get the contents of the image, and it worked like a charm <3

  • R0J0hound would you happen to know how to get the img.src to contain the image data from a sprite?

    EDIT: Ah I thought for a minute and solved it:

    1. paste the sprite to Canvas

    2. on canvas screenshot set img.src ='"&drawingCanvas.savedImageURL&"'

    thanks a million for all the help rojo

  • this one doesn't work in C3's javascript, and I don't understand it, but it still works great in the browser object.

    Thanks so much <3

  • Thank you so much R0J0hound You were already in the credits...

    This worked right out of the box ( C3 lets you type js anywhere, not just the browser object, but it's the same)

    I understand some of this, there's somePromises, and then you call a blob constructor.

    Do you know how you would write the contents of the Canvas to the clipboard?

    There's a clipboard.write but I'm not sure how

    Thanks again

christina's avatar

christina

Member since 21 Aug, 2012

Twitter
christina has 3 followers

Connect with christina

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies