Mogador's Forum Posts

  • Hello,

    I have a small problem that might look simple to resolve

    I create an interface when I left-click on an icon.

    And I destroy the airport when I right-click anywhere.

    But afterwards, I cannot recreate the interface if I left-click AGAIN on an icon.

    Do you know why ?

    Airport.png[/img]

  • Thank you very much

  • Hello,

    I am a beginner with arrays, so I apologize if my question seems obvious. I think it is a very a simple one:

    I have a one-dimension array, it looks like this

    0 : "boat"

    1: 0

    2: "tank"

    3: "plane"

    4 : "infantry"

    And I just want to create a condition that checks if this array contains an empty slot (in this exemple, this is the slot 1), to create some event accordingly.

    How would you do that ?

    Thanks

  • Hello,

    I am a beginner with arrays, so I apologize if the answer of my question seems obvious. But I did not find the answer in the tutorials I have read.

    I have a one-dimension array, it may look like this

    0 : "boat"

    1: 0

    2: "tank"

    3: "plane"

    4: 0

    5 : "infantry"

    First, I want to check automatically if there is any 0 in my array (there is in my example, but it might not...).

    Then, the FIRST time a 0 is found, I want to replace it by "submarine". But only for the first 0 found. The second 0 in this example would not be changed.

    How would you do that ?

    Thanks a lot

  • It works fine, thank you

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks,

    I understand it, but how do I get the distance of the line drawn by the player ?

    I don't get it as it is a curve

    Mogador

  • Does anyone has an advice to give ?

  • Hello,

    I am working on a Flight Control-like system where a planewould follow a line that has just been drawn

    [attachment=1:ujwf5ltq][/attachment:ujwf5ltq]

    I wonder if it is possible to make this circle shrinking as the plane is moving forward ? And the circle would be equal to 0 when the plane has reached the end of the line.

    Is it possible to do this with construct 2 ? How would you do this ?

    regards and thanks for your help

    Mogador