Ashley's Forum Posts

  • Some ideas:

    • check collisions on a timer. E.g. if you have slow moving objects, you can get away with 'Every 0.1 seconds' then 'Is overlapping'. 'On collision' still makes a collision check every tick, so if you can get away with every 0.1 seconds (approx. every 6 ticks), then it's going to be doing 6x fewer collision checks.
    • reorder conditions. Consider:

    + A is overlapping B

    + A health > 50

    This is inefficient since it does lots of collision checks for A overlapping B, then filters out some of A based on the health variable. This means a bunch of collision checks on A were unnecessary. Reordering it like this:

    + A health > 50

    + A is overlapping B

    means that fewer collision checks are done, since only the subset of objects with health > 50 get tested.

    • use fewer objects if possible, especially where testing collisions between two sets of objects with lots of instances. E.g. 'Is A overlapping B' with 100 instances of A and 100 instances of B requires about 10,000 collision checks - and if you're doing that per tick, obviously that's a huge CPU drain.
  • See how events work. You don't need a sub-event or a for-each loop there, you can just write:

    + Enemies: on collision with Player_Fist

    -> Enemy: subtract 10 from HP

    This will work exactly the same, and is simpler. If there are multiple enemies, the event picks only the instances that met the condition, so it works like you expect.

  • Try the new profiler in r142 - it should help identify what is causing the long pauses. Note there was a bug in r141 which could cause poor performance in Chrome, so you should upgrade to r142 anyway if you're using that.

    The object count's effect on performance depends entirely on what exactly you're doing. The best thing to do is keep an eye on things with the new profiler and see if anything's turning in to a CPU hog.

    Sound is probably processed in parallel in a separate core, so is unlikely to affect the framerate.

  • This will break music on other platforms (e.g. it will continue to play music in the background when switching tab in a browser). It's a CocoonJS bug, you should report it to Ludei.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It should perform exactly the same. You could even verify this by checking the collision checks per second count is the same in the new debugger.

  • You should report these issues to Ludei, since we don't make CocoonJS and can't fix any problems with it.

    9-patch has a property in the C2 editor to turn seamless mode on/off - that might help.

    Android might be better since I think the Android CJS launcher is one version ahead (on 1.4.1 right now, whereas iOS is still on 1.4 since the approval process is longer).

  • No, that's not possible at the moment. You should just document (or use the action descriptions) that a certain mode is necessary to use them.

  • Yep, working fine here too. You should paste us a specific URL that doesn't work, if you still think it's a problem with our site.

  • You are allowed to publish with the free edition providing it is not for any commercial purposes. Making any money, including with adverts, or promoting other products that are commercial, would all count as commercial purposes; if not it's OK.

  • Closing as won't fix. This type of tiny inaccuracy is normal in computer games.

  • Can you reproduce this in an empty .capx as per the bug report guidelines? That would prove you have found the issue and that it is not something else in your project. It looks like it might be the minifier breaking that expression, so I made a tweak for the next build anyway, which might fix it.

  • It would be easier to send the data in a format that C2 has tools to parse, such as C2's Array JSON format (which isn't just a simple JSON array), the Dictionary object's JSON format, XML, or just a comma separated string.

  • Yes, this is on our todo list.

  • Can you link to the online version which does not work? It could be a server problem. Could you also check the browser error console and report any errors that are there?

  • Do the tips in this tutorial help?