TiAm's Forum Posts

  • Ashley

    I have KitKat 4.4.2.

    As I said before, I don't believe this is a shortcoming of C2, since firefox mobile has very low latency. However, that means it's not an inherent shortcoming of android either. It's possible that this is related to higher input lag in chrome, I'm not sure. I'm having trouble coming up with a capx that can measure it.

    For an example: tapping as fast as possible on a sprite that causes a sound to play, I can:

      Chrome for Android: manage three taps before hearing the sound play. Firefox for android: sound plays before I can land a second tap, specifically on the upswing of my finger.

    As I reason it, that works out to FF having about a quarter the latency of chrome.

  • cesisco

    I bumped the post. It's not C2, but it's not android either because firefox mobile works fine.

  • Bumping this thread to say I am encountering this issue with both crosswalk and chrome for android. I don't think it's an issue with C2, but neither do I believe it's an android issue, as firefox mobile has a very minimal delay when triggering sounds, whereas chromium based solutions lag nearly a half second.

  • Welcome to the experience of working on any kind of moderately complicated project.

    Something I've found, which can be kind of painful, is that I often come up with a prototype that has entirely un-salvageable code. Usually, the best thing to do at that point is start over and build again. Kind of like a 'second draft' in writing parlance.

    But, before that, I take notes. A lot of notes. Mainly, I try to work out how to structure my code on the second go around.

    What logic should be encapsulated as functions, should I transition those global vars into a dictionary or array, should this logic go into this group, can I make life simpler by using this third-party behavior, should I combine these objects into one object or make a family for them, etc, etc, ad infinitum...

    C2 has an odd sort of curve, where it's very easy to build a prototype, but takes a lot of discipline to build a functional, efficient, and maintainable project, with enough comments and organization that you can make sense of it later on.

    Here's three specific bits of advice I've found useful:

      1. Functions. Use them wherever possible. They are more work to set up, but they make managing a complex project worlds easier. Plus, in many cases they are modular enough that you can reuse them across projects. 2. Groups. Use them. And decide on a way to name or sort them so that you can easily tell which are purely organizational (never activated/deactivated during the game) and which are being use programmatically. 3. Constant variables for logical values used in multiple places. Simple example: Global TRUE = 1, Global FALSE = 0. I like these because it makes code easier to read, takes advantage of C2's auto-change and auto-fill capability, and is more efficient and less error prone than using string comparators (though const strings can come in handy too...for example, as a reference to a function name).
  • Yeah, I still get this on chrome mobile, and also on crosswalk export, even with version 7. I've been meaning to file it as a issue on the chromium tracker, but just haven't got around to it yet.

    It's odd too, because I can pretty much go nuts with web audio effects (and I don't have the greatest android device), but that lag just won't go away no matter how much I strip things down.

  • C2 games?

    Yes.

    C2 itself?

    No.

  • TiAm - I brought this up internally. I will try to keep you updated!

    Great! Look forward to giving it a go.

  • This article:

    https://github.com/crosswalk-project/cr ... oject-Lite

    So, I'm wondering imaffett and IntelRobert if Intel XDK is going to support this version of crosswalk?

  • I think Ashley basically just said he isn't going to do this. You can still export and test, which is reasonably fast if you disable minification and set png-recompression to 'none'. On export, you will never hit the image limit since images are spritesheeted.

    Do you have an SSD? It's going to be a lot more difficult to work on such a project without one, especially if your are using caproj vs capx.

  • imaffett

    Crosswalk versioning is a little confusing to me...the crosswalk project blog lists Cwalk 11 as the current beta, as of three weeks ago. So, does XDK lag a few weeks on updating versions, or what?

  • Not a game, just a very crude, but fun, little spectrogram I came up with:

    https://www.dropbox.com/s/fjd05wbs1cg1c ... .capx?dl=0

    Needs the Paster plugin, by r0j0hound.

  • I think the problem here is two-fold:

    1. Dynamic loading would be a difficult thing to 'streamline', as is Ashley's wont with most features (and thank goodness, as that's what makes C2 so usable).

    2. Moreover, most users wouldn't ever touch these features. I would estimate 95% of people would go 'cool! I can build GTA now!'...and that would be about it. Building a game huge enough to need such features is a tough wall to climb all by itself.

    So it's probably hard to justify spending a bunch of time adding such features.

    Still...it would be really, really great to have an internal behavior like 'nickname'. That would come in very handy.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Large world Support is a must for me

    There was talk about this a while back and it is not possible to do as far as I am aware in C2.

    Just add scirra dot com

    /forum/viewtopic.php?f=146&t=119151

    because I am not allowed to post links yet

    Really, we have the tools to do this now...sort of. To practically do it though, you need a way of spawning objects by name, which necessitates using a third party plug by rexrainbow:

    I've never actually implemented this, but basically the way it would go is that you build your open world in one layout, have a function that loops thru that layout storing the attributes of all the objects within it(position, inst vars, etc), then store that file as JSON and use it to spawn everything in/out of a blank layout. Otherwise, for a truly huge world, the loading time would be insane.

    That being said, this could be streamlined immensely by a few extra built-in actions, as detailed in the thread you linked.

  • And no WebP support! The horrorz...

  • File size / 2 Nice! Now we need to wait and see if XDK guys will add an option to choose between Crosswalk and Crosswalk Lite.

    Yup, competitive with CJS now...