Ashley's Forum Posts

  • We don't support this yet, it's kind of an oversight. Editor support should be coming soon, but in the mean time you can use tools like ResHack to update the icon yourself.

  • It's a note to myself to check why that would happen. Could I have a look at the .capx that prints this?

  • One of your project files has gone missing. Check the subversion logs and make sure everyone's synced properly and there are no conflicts.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • imothep85 - well, do you know of any command-line tools that can encode to WebM or Theora and are free to use in commercial software? How about H.264?

  • You should be aware Dropbox seem to be having some hosting problems lately and sometimes fail to transmit files, which can break the project. It's a problem with Dropbox hosting rather than a C2 issue. It might work better if you use a real host (renting a cheap server is probably 10x better than Dropbox hosting).

    C2 games work best with iOS 6+, and on Android definitely should be using Chrome for Android instead of the stock browser. PhoneGap is known to have awful performance on Android and iOS, which is why we recommend using CocoonJS instead. Also for a music-based app you probably need support for the Web Audio API for low-latency audio playback - currently this is only supported on Chrome desktop and Safari for iOS 6+. Firefox are working on support too.

  • Usually a browser crash indicates a problem with the browser, not with your game. It's not normally possible to crash a browser with web content.

    Check you're on the latest version (go to About and see if it says there's a new version). You could also try Firefox Nightly, which is a preview of the next version or two ahead. Also try disabling browser addons, since some badly written ones could crash. Also check your graphics card drivers are up to date in case it's a rendering crash.

  • thehen - feel free to hack the physics behavior to try it out.

    Box2D uses a different collision engine to C2, which is continuous, so you should never get teleporting with the physics behavior. If the time step becomes too large and the physics engine becomes unstable, I guess anything could happen - including arbitrary velocity limits.

  • Oh, I see. It depends on resizing the browser window. I'll try get this fixed for the next build.

  • Yann - that's a great screenshot, and shows the truly ingenious levels of sprite re-use that professional games use, and you hardly notice unless you look carefully. Construct 2 makes this convenient too since you can take a sprite and scale it, rotate it and copy to different layers. I think even the original Mario got away with using the cloud image for bushes, but with a different palette to change the color to green. So there's a long history of this kind of trickery!

    Arima - the memory manager only works layout-by-layout - it currently makes no effort to release textures mid-game. It will only release anything when changing layout. It tries to pre-load everything on a layout when the layout starts, but it does this by looking at which objects are placed in the layout view initially. If you create an object not initially in the layout view, it still has to load the texture at the moment you create it, which can create a pause.

    Modern 3D games use a technique called texture streaming, which is where they load and unload textures dynamically as you move around. However they have two advantages in doing this:

    • they support threaded texture loading, so they can load textures to the GPU in the background without pausing the game. WebGL doesn't support this yet, although I think the group working on it want to add support using Web Workers or similar.
    • they are 3D, which means they exploit distance. If a texture has not been loaded, the object will appear a solid colour. However it will generally load textures as you approach objects from a distance. So at first they are usually so small in the distance you can't see any texture detail. The texture usually gets loaded before you can approach and see any detail, meaning it's a pretty seamless experience. In 2D, there is no distance, so objects will simply appear as holes in the level until they get streamed in. This makes it more difficult to ensure textures are always loaded by the time you scroll to them - especially difficult if you can scroll very quickly in unpredictable directions.

    So we could improve texture streaming capabilities in C2, but the tech isn't quite there yet, and it would still be hard to use. I'd still recommend taking the composition approach (Rayman style). Not only does it make the game use a lot less memory, it also makes the download size considerably smaller, which is especially important for web games.

  • Hmm, that's a bit of an oversight. You can't add No Save to those objects right now (or Persist). I'll see if I can come up with something to fix that.

  • Arima - it's hard to avoid mid-game pauses from the textures being loaded and dumped on the fly with that method. Also C2's texture management isn't expecting you to do that, so it might keep textures in memory and still accumulate up to the full layout memory size.

  • The existing Dictionary object is a good substitute for the INI object. INI is an ancient format from Windows 3.1, obsoleted in Windows 95, and has some ridiculous limits built in to it. It really needs to die. Dictionary can store data in a very similar way, without limits, in a modern standardised format that is easily interoperable with other services.

  • You do not have permission to view this post

  • Is it just because all their avatars are the same? I didn't think our site let anyone sign up more than once with the same email, maybe Tom can investigate. Still, could just be one person who really loves your game and wants to show off their scores :)

    (If I was a hacker I'd enter 2^31-1 as the score, but maybe that's because I'm not really a hacker, heh)

  • Well, a left arrow is U+2190. A lot of spritefont engines don't support non-ASCII characters, which is quite a big limitation (good luck if you speak a non-latin language). Luckily C2 and all modern browsers support unicode, so you should be able to do something like: if keystring = "?", set to "left arrow".