fanusgames's Forum Posts

  • I have an animation like this, each sprite has an active variable and so I move the button of the active page up 10pixels, is there any way to make it cleaner?

  • > In my game, there is a bar that will be active every 3 minutes so that we can gain power when we click on it and as you can see in the image, is there a chance that I can do this cleaner and with less code?

    >

    > and I add extra timer images for each powers, can there be a shortcut for this?

    >

    >

    >

    >

    >

    >

    >

    You can use 1 timer behaviour for different timers using timer tags

    https://www.construct.net/en/make-games/manuals/construct-3/behavior-reference/timer

    thnx Do you think there's a system where I can automate this for all powers elements?

  • In my game, there is a bar that will be active every 3 minutes so that we can gain power when we click on it and as you can see in the image, is there a chance that I can do this cleaner and with less code?

    and I add extra timer images for each powers, can there be a shortcut for this?

  • Is there a course content about this? I don't know much how to do it in construct3

  • This happens with all fonts and instead of setting them all individually, maybe there is a shorter way :/

  • Here's what I want.

    the more text is written inside the selected text element, the larger the text element will be, this will only happen 1 time when the game starts, it will not be dynamic

    My goal is to set the automatic width in various languages

    I want to make the text element as wide as the content of the text

  • The texts are not exactly centered vertically, as you can see on the left, the 2 options are centered horizontally but vertically based upwards, how can I fix this?

    this also happens with texts that are not special fonts

  • I want to add multiple language options to my game in the simplest way

    I actually think the simplest method is to edit the excel file and transfer it to the construct

  • Can You Send ScreensShot Of Your Events, For Understand Whats is Going.

  • the ads in the game do not appear when I install the game and open it for the first time, but if I close and open it 1 time, they start to appear, what could be the problem?

  • even though I cleaned all the edges, this happens. I want no black lines

  • If you want to delete 5 sprites in the order from nearest to furthest with a small delay between them, try changing the code like this:

    In fact, this is not what I want, it works smoothly in the code I send before message, what I want is to delete these 5 objects in order when I press the button, but when I make it work when I press the button, only 1 object is deleted.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is this loop nested under some parent event? You need to explain the task.

    The code you posted will destroy only one SpritesA instance at a time. Even if there are 100 sprite instances on the layout, the loop will repeat 101 times, but every time it will be picking the same single instance - closest to (0,0).

    Then after 0.07s delay it will destroy this one instance 101 times :)

    all the code is like this, when I want to make the code to work when a button is pressed, it doesn't happen, but it happens whenever I take the code out.

    so it works smoothly as it is, what I want is to delete the top 5 objects when the button is pressed.

  • "lvl"&4 is the character string "lvl4". You are doing a size <= type comparison with a character string. While this might work for some character strings it isn't standard practice.

    Since I don't understand this part of your code, I don't feel qualified to answer, but I simply point it out as questionable.

    yours

    winkr7

    actually what I am asking is that when I press a button, the for loop does not work, it works 1 time, I just want it to work until the for ends when I press the button.

  • I have a for loop that works this way, I want to make it so that when I press the button, it deletes the first 5 objects, but when I press the button, it deletes only 1 object and the others remain.