RobertMKD's Recent Forum Activity

  • So, I have read somewhere that the number of moving objects on the screen has a serious impact to the app's performance.

    So, I have this map with levels in my game, which you drag left or right in order to slide it. Because it is very laggy, I have come up with an idea of scrolling the screen left-right, instead of moving the whole map together with the bunch of sprites pinned on it.

    The question is: Is there any difference, regarding the performance, between moving the whole map in order to slide it, and only scrolling the screen and moving the UI?

  • Basic set up

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

    Exactly what I wanted! Thanks a bunch!

  • Well, the black part of the mask will cover the transparent parts of other masks. Get it? You see, the goal is to make the rest of the level black, except for the areas I don't want, but adding a mask on each area I want it to be visible will make them cover each other and my whole level will be black....

  • I want to make some of my levels dark with only a circle around the player visible. So, I can do this simply by creating a black mask sprite with a circle in the center and make that sprite follow the player. However, I also want to make other objects apart from the player to 'emit light', so If I make black masks for all of these 'light emitters' they will conflict with each other.

    As far as I know, this cannot be done with C2 on its own. So, is there some plugin I can add to it?

  • How do you set the moving speed of objects owning the 'CustomMovement' behaviour framerate-independent.

    Or, should I make my own moving system and move the object every tick adding the dt expression to it's 'distance-per-tick'?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > My project is halfway done guys, how do you mean I should use Unity?

    >

    > So you wanna say, apps made in Construct 2 are not intended to work well on phones? Well, that's a shame!..

    >

    A lot of people has tried to use C2 to publish on mobile, but we get framerate and sound lag issues. However, I have read of some other people that have been successful, although I have no idea how.

    I think your best bet is to ask for paid help, since mobile optimization and using XDK or phonegap is an art on itself.

    How do you mean 'paid help'

    And yes, I know games made in Construct 2 that run very good on my phone.

    No construct 2 runs fine just use my mobile optimizing tutorial here

    viewtopic.php?f=146&t=181811

    Also check my game called blast AD with 25-30 enemies onscreen with no lag and no trouble.

    To be specific, construct exported games that push the limits of device capabilities will not run well on phones that do not support webgl. Overheating of processor can be caused by inefficient events. 20% of a desktop CPU can be significantly more on a phone.

    Basically, devices do have limits, and you need to design within those limits for whatever target for are aiming for. Changing engines will not magically remedy this.

    Well, I've got over 300 objects (according to 'objectcount'), of which around 100-200 are on screen (they are small images drawn in C2), which are fixed and aren't moving at all, but serve as obstacles(except for the player and few others). These objects are differently positioned in each level. I have tested the game eliminating 70% of those blocks - there was no change in the performance.

    So, I have no idea what else must be ruining it, my code is not an amateur one, everything is made in an efficient and flexible way (using less to accomplish a lot)......

  • My project is halfway done guys, how do you mean I should use Unity?

    So you wanna say, apps made in Construct 2 are not intended to work well on phones? Well, that's a shame!..

  • My project runs perfectly while previewing on my laptop's browser. When running through Debug Mode the CPU usage is 20%.

    While previewing on phone, it runs like 2 frames per second and causes the device to overheat. The problem is that my Samsung smartphone has no WebGL, so it uses its processor for rendering, and when previewing on phones that have WebGL (like Xperia), there is no problem at all, though it still overheats the phone...

    So, I've seen many others have this problem, but can somebody actually share their solution?

  • So how do we install this plugin in construct 2?

  • It lags on every other phone except for Xperia which has a WebGL and the game there runs with no difficulties. I've seen that many people suffer from this problem. So, what should I have to do to make no difference in playing from Xperia and other phones.

    I have followed the tutorial in the link MPPlantOfficial gave me, but my project still lags.. I've removed 75% of the objects on screen just to test it out, and there was no change in the performance (so, something else is the source of the problem), it still runs by 1 frame per sec.... 0_0

  • I'm not really sure that's the problem since my images are all made in construct 2 (I am just testing the game), and I paid attention on the number of objects....

  • I have exported my project to Intel XDK and previewed it on my phone using Intel App Preview, but the project's performance is poor, I've also previewed it on my phone's browser, but it's the same there aswell.

    I have no endless loops or stuff like that, the performance is good when previewing in browser on my laptop, but that's not the case for my phone.

    What may cause this?

RobertMKD's avatar

RobertMKD

Member since 15 Apr, 2016

None one is following RobertMKD yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies