bllaaa's Forum Posts

  • Hi everybody.

    I have a group of array. Each one has index with the "difficulty configuration" for each level of my game.

    Example :

    LEVEL 01
    index 0 difficulty 1
    index 1 difficulty 2
    index 2 difficulty 2
    LEVEL 02
    index 0 difficulty 2
    index 1 difficulty 2
    index 2 difficulty 3

    I want to access each array with a variable. Because I need to setup difficulty when my player is upgrading. So I want to use my variable, "playerGrade".

    At the start of the game, this variable is set to 0.

    When the player makes an upgrade this variable set 0+1.

    Currently I don't know how to access an array by a variable. Please help me ^^

    Tagged:

  • Great. I saw that on the « performance tips », but does it mean that I can use à verry large scene ex: 10000x800px, without impacting performance?

  • Thanks a lot for your help. ^^

    My project is a pretty little game. I thought it can run on low-end device without problems. I was wrong. ^^

    Do you know if Contruct is calculating every tick for every element of the scene or only for those visible on the screen?

    At my office, I work with Unity and it calculates only for elements visible by the camera. I don't know if Construct does the same.

    Is there a camera system on Construct? Do I make one for my game?

  • I use only 16x16px assets for all the game. My background uses a color and tiles.

    I use tilemap for all the background elements: ground, tomb, lava...

    The scene is 3000x800px, because it's a runner game. Is there a best way to make it ?

  • Hi everybody.

    I made a 2d runner game with simple mechanics. It works nicely on windows but really has poor performance on tablet Android Lenovo Tab4.

    I don't know why.

    Is someone can help me with advices?

    How does it work with assets? Are they really killed when they are out the screen?

    Do I have to create a camera?

  • I made an image for those who are like me, misunderstanding the margin system. Now I understood and it's really powerfull and simply to use. ^^

  • Thanks for the help it's really helpfull. ^^

  • I don't understand how 9-patch works on construct. I'm using construct 3.

    1/. I create a new 9-patch.

    2/. I import an image

    3/. When I deform it, its edges don't preserve their aspect.

    Is there a place where we can modify/specify the slices?

    Thanks a lot for the help. ^^

  • Thanks Plinkie ^^

    I made what you said and it works, but what I want to do is a bit different. I want to display a custom message called by a variable.

    1/- When my player collides with the computer, it becomes active.

    2/- If the player presses A when it's active a message appears. On the computer with variable "message"=1, the messages displayed is the 1. If he collides with computer 2, it's the message 2 which appears.

    Currently when the text field displays "1". What I would, it's displayed the message 1 "Il y à une trappe sous les arcs électriques." (sorry it's in french ^^)

    Thanks a lot for your help

  • Hi everybody.

    In my game, my player can find messages on computer. I want to make a code useful and simple.

    When my player collide with a computer, he can activate it with A button and a specific message appear. Each computer has its own message.

    So how can I do that?

    Currently, when my player collide I know how to show à text message. But not how to show thé message 1 on the computer 1. The message 2 on computer 2...

    Need your help. Thanks a lot ^^

  • Ok, youre answer, helped me a lot. I found a solution.

    Now, when I create "blockFxSpark", it plays an animation with only one frame. This frame is void.

    When its created, its boolean "isActive" become "true"

    When this boolean is true, "blockFxSpark" plays its animation.

    And when the animation is finished, I kill "blockFxSpark" and the boolean switch to false.

    So now I only have one occurrence of this animation because I kill it. And its probably best like that. ^^

    Thanks for youre help.

    Here it's a screenshot for helping others. ^^

  • Ah sorry... I refreshed the screeenshot, here is an english version now. ^^

    Yes, when the player taps on the gold block, I spawn "blockFxSpark" over it. And I would it plays its default animation once. And it does it a bit. ^^

    It's not a good practice? How should I do?

  • On the gif below you can see I click 3 times on the stone block. My animation works perfectly because I maintain the click.

    After this 3 times, I still click 3 times. And you can see the animation is played more than once each time.

    https://gph.is/2Ssovcx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I found something interesting. If I click on my object and maintain the click, it works perfectly. But if I only click quickly once it plays the animation more than once.

    I specify that the animation is not played on the released.