Facet's Forum Posts

  • and here goes layout:

    and here sample what is visible on device/window. Lights no matter for peformance or not important (some "lights" shifted here, just for show.

  • Here is:

    You can see here 0 colision checks per tick. When "player" not moving I see zero, when walking, I have max 32 ~3 per tick.

    Anyway, fps is bad. I am testing it on slow laptop, but on my device, Nokia 1020, 2x 1.2 cpu is better and with WebGL, but not so much better. My target is to run it smoth on this old laptop, on sceen realy simple graphic, so in theory it should. In theory....

  • I will ask you for sure!

    I have over 400 wall object, different shape/size. And some "furnitures" also need colision check. On screen I have maybe 3 dozens of instances only or mosty less, and sprites are very simple, all on grid, collision polygons are square in 50% and all convex with 45 degree lines only if not 90. Basic cell size is 8px, but game size (windows size) is 320x192px only.

    I must try some of your ideas and I will ask more

  • Thank you for your extensive reply! I must study it more now. Some ideas I like very, however, with disabling not needed instances is still same problem - huge loop for checkind what shoule be solid, what not. Maybe js is just too slow for games like this, but I will work on it more.

    Thank you!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • We have special group for XDK and Construct 2 people, go here forums.html5dev-software.intel. ... m.php?f=31

  • You can just name your layouts 001, 002 instead of Level 001 etc. This is simple and saving CPU, regex need more. I am not sure how 001 is count, maybe just as 1, but better to name layout 1,2,3 etc. Then you can display text like a

    "level "&LayoutName

    or something.

    And code you need:

    Condition: LevelNumber > 0
    Action: System > Go to Layout by name LevelNumber (without brackets!)
    [/code:36fqp8db]
    
    If you still need a regex solution ask me, but this is not needed I am sure.
  • ha. This is very nice idea for game. Maybe in time I will play with it some

    Dobry pomysł

  • Emulator in XDK is just another web browser, not device emulator. It emulating device resolution and some other functions, but this is not real emulator, like a in Eclipse or other real SDK's. However, XDK is very good tool, don't get me wrong.

    With your problem, you can disable click "possiblity" for some time, maybe 1s after click, then turn on it again. And good habit is do not place buttons on different layouts in same place (real place on device), because after clicking "go layout 2" you can click also on layout 2 back button for example if is in same place. You must be tricky a little.

    If you have no real device, is much harder. You should have it, but I published my 1st game without and here was no problems, but a lot of pain with checking how it should work.

    If you are working in XDK and you are using sounds, you should use Crosswalk only, because here sound will work 99% where other exports, without some magic, it will not work on 99%.

  • On the beginning, I read a lot on this forum and scirra page about game optimisation and here no solution for my project or maybe I am doing something wrong.

    I have relative large layout with a lot of instances. Main problem is much more over 400 objects with solid state, where game checking colision. We can say, this is some kind of simple open world game, but not exactly. I have ultra simple sprites and graphic, so visuals no matter for fps. Game is slow because sprite placing and colision checking only.

    I tried to disable off screen objects (solid, colision and visiblity). And here go problems well known. However it working in theory, but big loop (object disable/enable) making fps even worse. And without "optimisation" like this it working also bad, not acceptable. I know how to disable/enable objects off screen or over some distance. This is no problem. Problem is, how slow it working.

    My question is:

    * Is possible to efficiently optimise C2 game with over 400 instances, where most of are always off screen?

    * Is possible to do it in free version, just for checking how it works and whether I should stay with my project on Construct 2/html5 or not?

    * If yes - how?

    I have some kind of large maze game, so here must be a lot of colision checks. It is possible to do it in Construct 2?

    Thank you.

  • Thank you. Here few reasons, why it's not auto disabled I think But for example, state like a "disable/hide all objects not on sceen where distance is > than..." would be handy.

  • I am creating arcade style game based on sample resolution 320x180 px, runned full screen on mobile devices. This resolution need different pathfinding settings, means cell size must be small (8 for example or less). Small cell sizes are worst for fps end here my question: when game is running full screen on HD device, means 320 is in fact for example 1280 px, cell size is 8 px still or interpolated to 8x4 = 32px? And "engine" calculations are for 32px cell? In my design grid and basic size is 8px (for screen 320x180px).

    This is for me important, because here can be 4x performance difference, and I can't check it on my device, because is too fast and I have always stable fps or difference is too small.

  • Hello

    I am not sure, how expensive for fps is placing rotated sprites. Means, not in game animated rotation, but where I am placing some sprite in editor and rotate it 45, 123 etc degrees. In game it not moving/animating.

    I know, I can prepare different sprites (same but rotated) but for my design this is not needed and need much more time of course.

    Another question, just for sure. Do sprites outside view are visible state (for engine) or should I disable any outside layout sprite visibility?

    Thank for your help

  • Intel XDK working with Cordova 3.5 (should with 3.5.1) but with XDK projects only not Construct 2 imported files. All C2 projects fails when build with cli 3.5, working with cli 3.3 only. Just tested sample XDK project, build with 3.5, no errors and app working on device (Android). Even sample C2 project loaded to XDK and compiled with 3.5 creating errors and no go. Problem is in C2 (tested with newest version 184 and olders)

  • Same problem. I read somewhere about using

    box-sizing: border-box;[/code:1zifuc8c]
    but it not working for me. Any other ideas?
  • Very nice plugin. How to add collision with other objects? Avoidance? Maybe I missed something...