WRS's Recent Forum Activity

  • 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?

  • Try this:

    Start with turret enabled: no

    And create a condition to enable it only when you have line of sight, also when you have line of sight use the action: Add object to target.

    Create a else condition and set the action: Unacquire target.

    Lets see if it works.

    Yes, I have done so.

    When tvrag gets into the zone of visibility, then we activate the taurel.

    The most interesting thing is that I use treys and I see visually a line of sight, I see how solid objects overlap it.

    Also, through the zone of direct visibility, the pursuit of the enemy is configured, and everything works fine.

    But with taurel it does not work.

    I'm afraid the fact is that taureli has his own parameter of visibility and he ignores hard objects.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try using a line of sight behaviour together.

    Yes, I use this behavior. But it does not help, as soon as the movement occurs, it is taurel induced and opens fire on the object behind the wall.

  • When using Taurel's behavior, the taurel itself shoots even if it sees the enemy behind a hard object. That is, shooting through the wall. How to make so taurel would not see the enemy behind the obstacle?

  • WRS

    that line creates all the level sprites in a grid to evenly space them out.

    you don't have to do it that way - you can have them already placed on the layout.

    it takes a short while to load the array data from local storage, so the game wont know which levels are locked or unlocked when the layout starts. You might want to set the level sprites as invisible until the array is loaded and you can set the correct animation, and show how many stars have been earned.

    Many thanks for such a detailed example. I will deal with him)

  • WRS

    I was only showing how to store the number of stars in an array, and save that in local storage.

    in your screenshot you store the level name as an instance variable, and that is perfectly fine - I just didn't want to make a lot of levels...

    I'm sorry for the meticulousness, I just want to understand how to work with the array as much as possible))) I apologize for the clarifying questions.

    What does this expression mean?

    100 + 125 * loopindex% 5

    150 + 150 * floor (loopindex / 5)

    Not all technical language, I still understand.

  • WRS

    you can save the entire array AsJSON...

    I made a quick sample...

    https://www.rieperts.com/games/forum/levelstars.capx

    I can not understand what makes this expression?

WRS's avatar

WRS

Member since 2 Feb, 2019

Twitter
WRS has 3 followers

Trophy Case

  • 5-Year Club
  • Email Verified

Progress

6/44
How to earn trophies