Ashley's Recent Forum Activity

  • So can't you do it by splitting it up in to 3 tracks: intro (clean), intro (with tail), and the rest of the main track? I don't think that's a hack, that seems a pretty reasonable way to do it.

    I'm not sure if you realise, but scheduled audio does not actually usually work with audio categorised as music. These tracks are normally backed by <audio> elements, which don't support sample-accurate playback - only Web Audio buffers do, which is how audio categorised as sound is played.

    On some platforms for various reasons like compatibility we actually ignore the audio categorisation and play everything as sound anyway (i.e. via Web Audio buffers). I've never seen or heard of any particular negative consequence of doing that, so I think it's fine to do that in your case too if you need sample-accurate playback of music tracks, and audio categorised as sound can be played with unlimited overlap.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Again, hosting important project data in a file you AJAX request is not effective. If someone copies your entire project, they will also copy the files that are AJAX requested, and everything will still work.

    I'd advise just to use the domain lock approach described in the tutorial I linked to previously. If you use AJAX, it's entirely possible you could come up with a very complicated scheme that offers no protection against copying whatsoever.

  • The tutorial Publishing to the web has some advice under the heading "Domain lock".

    I personally wouldn't bother going much further than that, unless you're willing to enter an on-going DRM arms race.

    I wouldn't actually go for the approach of AJAX requesting a file - if you want it to work in preview, you have to configure the AJAX response to work cross-domain, and if it works for any domain, the protection is no longer effective.

  • I was wondering myself why people choose other engines and I came to the conclusion that most people choose Gamemaker because it has better performance since it exports to native code???

    Modern JavaScript engines are exceptionally fast, and we've carefully tuned our engine for performance over several years. On my development system it can manage hundreds of thousands of on-screen sprites and still hit 30 FPS. I would think it is at least strongly competitive on performance. Who knows, maybe it's even faster? It would be interesting to see actual benchmarks. But I think Construct is fast enough for the vast majority of people who use it, and of those who have performance issues, often it's hardware limitations like GPU fillrate that won't be improved by changing software. So I'm sceptical many people would choose other software for performance reasons alone.

  • Making random modifications to the runtime could easily break lots of other things. You shouldn't really do it. Please file an issue following all the guidelines so we can properly investigate and fix the real issue if necessary.

  • Why not just mix the tail in to the start of the track? That's what you'd normally do to make a looping audio track.

  • Peers connect directly to each other - the signalling server is not involved when peers are connecting to one another, it acts only as a meeting place. Peers cannot always directly connect if the network configuration is too restrictive. This is explained in more detail in the multiplayer tutorial series.

  • If you can use a tilemap, you probably should. However tilemaps are limited to same-size images in a grid. You might still want to use the technique you described (sprites with different initial frames) if you want more flexibility, such as positioning different sized objects freeform, not aligned to a grid.

    Using tilemaps is faster than using a grid of sprites to produce the same effect. But other than that, it's probably too soon to ask questions about performance - and if you want a good answer, you can measure the performance yourself.

  • In Construct, you are effectively still working in a browser on mobile (via a webview), and Cordova wraps the Android/iOS specific parts. So you either have to still code it like you would in the browser, or you'd need a Cordova plugin to use it in an app. Again this is something you'd need to talk to them about.

  • You linked to the documentation for Android apps, which you can't use in a browser. But if they provide a JavaScript API, it might be possible with that. I can't say for sure though, since it depends on their service. It would be best to direct questions about their service to them.

  • It's better to use a Text object. Putting text in an image will be comparatively poor quality and lose the ability to make any dynamic changes.

  • For security reasons, browsers block access to cross-origin (i.e. different domain) iframes.

    The only way you can get data from a cross-origin iframe is via the postMessage API - and the iframe page must be specifically coded to receive messages and send back the information you want. If it doesn't already do that and you don't control the iframe page, it's not possible to get any information from it.

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,440,501 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
  • x109
    Coach One of your tutorials has over 1,000 readers
  • x63
    Educator One of your tutorials has over 10,000 readers
  • x3
    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
  • x36
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs