Ashley's Recent Forum Activity

  • 'Is on mobile device' is an approximation only, so you shouldn't use it for important things like determining input. Besides, why would you want to disable touch for touchscreen-enabled desktop computers?

  • OK, closing this thread - best take it up on StackOverflow.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The games should work fine on IE 9+. If they still don't, please let us know the URL so we can see what is going wrong!

  • This isn't currently supported in the Text object (since it draws to a canvas it does not use CSS rules about line height, only the typeface). I'll see if I can add something for the next build.

  • ranma - well, I mean if you have a stereo track and encode it both before and after downmixing to mono. Most codecs encode stereo as M+S (mid and side) rather than L+R, so in a stereo track with identical L+R channels the side channel is zero and should compress to nothing. Most encoders also use variable bit rate (VBR) so choosing '96 kbps' does not mean it will definitely generate that much data per second, it's just an approximation, and it will be less if the audio is easy to encode. (For example silence won't generate 96kbps of data in a VBR encoder, that would be wasteful). A stereo sound would have to add a lot of data to the S channel, making the file up to twice as large (but usually not that much actually).

    The Ogg Vorbis files tend to be very small and good quality, whereas the AAC files are a little bit bigger and sound a bit worse. It's not a major difference, only IE+Safari users get those files, and I doubt many casual gamers would actually notice, so I don't think there's any need to change the way we do it. Again, if you want tight control over how your audio files are compressed, mix and encode them before importing to Construct 2 - if you import .ogg and .m4a files, C2 just copies them in to the project without touching them. It will only encode for you if you import .wav or .flac.

  • Please don't cross-post threads. Closing.

  • The Scirra forums is not the best place to ask programming questions. Can I recommend StackOverflow?

  • Are there any concerns you have in particular about Construct 2? Often there are workarounds or other solutions you may not have heard of.

  • It's a good idea, but browsers simply only store strings in WebStorage. So in the interest of simplicity, instead of building some proprietary incompatible type-system specifically for C2 on top of WebStorage, it just uses strings only as well.

  • Knifegrinder is right, usually if you encode a mono wav file it will come out half as big as a stereo file anyway, even if the output file is stereo, because the sound data on both channels is the same. So downmixing to mono before importing to C2 should work fine.

    Goury - I'm afraid it's still not that simple. Have a look through our blog post archives where we cover it in more detail. Because of patents around AAC, we must pay a license even just to distribute a free encoder. This is why we use Windows 7's built-in encoder - it means we are not distributing an encoder, so we don't need a license. Windows 7's encoder is not very good, but I don't really care - it's only for Internet Explorer and Safari who could support the free Ogg Vorbis format, but don't because they have ulterior motives. So I'm not too bothered if sound quality isn't great in those browsers.

  • The letterbox modes aren't supported in CocoonJS yet... I'd be surprised if they worked!

  • You do not have permission to view this post

Ashley's avatar

Ashley

Online Now
Early Adopter

Member since 21 May, 2007
Last online 27 Oct, 2026

Twitter
Ashley has 1,832,723 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
  • x6
    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
  • x44
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs