WRS's Forum Posts

  • I will describe the problem in 2 words, maybe it came across.

    On the computer, when the test is working, I click on the button, switch to another layout and the sound is turned off, I return to the previous layout and the sound does not play - so it should be.

    When I import to iPhone via XCode, when I press the button and switch to another layout, the sound is turned off, but when I return it continues to play.

    So it’s not as long as I’ve forcibly set the mute off.

    The code works as it should, and in the test everything is fine. What is the problem exactly on the iPhone.

    And the sound ignores the variable - that is, it cannot play if the variable is equal to 1.

    When testing for iPhone, the variable does not change, the sound plays, when the variable 0, the sound plays and then it turns out that it is reset

  • The most common problems people have are:

    - while the loader layout itself is loading, the stock loader is shown again

    - if the project loads very quickly, you will only very briefly see the loader layout

    The project does not load very quickly as the standard preloader hangs for a few seconds.

    I understand so far there is no working mechanism that would allow me to load my preloader regularly?

    I tested on the device itself on the iPhone and on the version for the computer. Everywhere my preloader is ignored. and just the screen color is flooded

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I did everything as it should be, but for some reason it does not work.

    1. I created a special preloader layout

    2. Installed to use it

    3. Disabled standard

    But it does not work, when it starts up, it is loaded with white (Or any color that is assigned to the whole project) and the next screen starts immediately after the loading screen. (Since there is a trigger to go to the beginning of the game after booting.)

    Even I remove all the triggers, then at first just load the background, then as it loads, my loading screen is loaded.

  • oh... yea ... u running a tracer in a huge loop for each object.... that is why... limit the object that loop to those that are actually needed and not everything in the map.

    Can there be a way to achieve the same effect without using Trace? so as not to load the system?

  • oh... yea ... u running a tracer in a huge loop for each object.... that is why... limit the object that loop to those that are actually needed and not everything in the map.

    I also have this line. And I can not understand what it means? What are these processes?

  • oh... yea ... u running a tracer in a huge loop for each object.... that is why... limit the object that loop to those that are actually needed and not everything in the map.

    if you preview in debug mode, go to watch tab and see each group code how much is consuming as % cpu usage

    ( and if they need to run all the time ... how much usage is consumed)... then modify and try to limit the triggers for each in part to get it lower or up to like 30% (for example items that are not in screen don't need to check the los/tracer, since they arent visible) total usage. cause 70-85% cpu usage is unplayable.. even if u have 34 fps... is not recommended.

    Do not quite understand, or rather do not understand at all how to do this? That is, how not to use the object if it is not in the frame?

  • 85% cpu usage is huge.. unless ur macbook has like 1GhZ cpu ... then is normal...

    is your game running a loop for creation or position check for all elements? why is it so high?

    if u can share a capx we can look at it, and maybe fix some of the issues or give some pointer out.

    No, I have enough macbook pro)))

    I can not understand yet why such a large consumption, I think this is due to the use of LOS.

    With Trace, I visualize LOS to see the viewing radius. Perhaps this method consumes a lot of resources, but I do not know how to do it differently.

      I use it for every type of enemy.

    Here is a separate piece of LOS

    yadi.sk/d/70m0TTVnmPpduA

    Also, all enemies have 2 movement behaviors.

    1 - Movement along the trajectory through the behavior of a bullet

    2 - route search

    I do not know how much it eats CPU

  • > If I have a 5% download on my computer, then on a mobile it is 50% and that means you need to

    When testing for MacBook, I have such indicators and it is extremely bad? I understand correctly?

  • > If I have a 5% download on my computer, then on a mobile it is 50% and that means you need to optimize it until I get a computer, I will have 1-2%?

    yea that would be somewhere around 30-50% usage on mobile if u got a 5% on pc... so if u get a 4% 3% on pc is good. 7-10% on heavy games pc is ok also.

    however run the debug preview, and check the cpu usage estimation, cause that is what matters, not the download size.

    Thank you very much)

  • You do not have permission to view this post

  • probably you overdone the effects used.

    it's usually high ram usage/high cpu usage /gpu that drains a lot of power. the faster the battery power is drained the hotter the device will be.

    take a look at the optimizing for mobile tutorials available online for construct, as an idea, reduce the calls of the effects and their size.... the mobile device doesn't have the same memory power as your computer so whatever your cpu/ram/gpu usage says on pc is going to be n*10 for mobile devices ( debug showing 5% cpu usage on pc? than u have a 10-50% usage on mobile.)

    If I have a 5% download on my computer, then on a mobile it is 50% and that means you need to optimize it until I get a computer, I will have 1-2%?

  • Tell me I made the game, I imported it on the iPhone, I play everything well. But the iPhone is warming. This is normal? Or some kind of problem with the optimization of the game?

    Yes, there are games from which the iPhone is heated, but my game n contains cool effects.

    What is the mistake on my part? Or is everything ok?

  • See this demo:

    https://www.dropbox.com/s/87bpiif8ggzq6eg/NumbersList.capx?dl=0

    Большое спасибо!))))))) то что я как раз хотел сделать)

    Тут уже нужно знание видно программирования(

  • There is no such condition or expression.

    If the series of numbers is always the same, you can do this:

    > Compare two values (a=1 | a=2 | a=5 | a=10 | ...) = 1
    

    Or you can put all numbers in a text variable numbersList=",1,2,5,10," and search this string:

    > Compare two values find(numbersList, "," & str(a) & ",") >=0
    

    Or put all numbers into an array and loop through the array comparing each index.

    Если что-то непонятно, могу на русском объяснить.

    -----

    Да, если можно, что то не совсем понял. Где вы это прописали и как.

  • Hello to all.

    I need to compare the "First Number" is it among the series of numbers

    For example:

    If 5 equals

    and here I ask the ruler of the number: 1,2,3,4,5,6,7,9 - How is the problem that the system would compare the first number with a number of numbers?

    Is there a comparison number among these numbers?