Laurent's Forum Posts

  • Thank you. That was it, my code was on the wrong sheet....

  • I'm building an app for a museum and need to have it reset to menu when it's not used for 30 seconds, so that the next visitor can start from the begining.

    I used a function to restart a timer each time screen is touched and start a function once the timer has reached 30 seconds but it does nothing (timer behaviour is attached to a random sprite in the game, here the background image):

    + Touch: On any touch start

    -> Sprite: Start Timer "Inaction" for 10 (Once)

    + Sprite: On Timer "Inaction"

    -> Do something

  • Thank you very much ! It works very well.

    Actually, I'm keeping column names and use them to find out the column number because I may have later to reorganise the array and thus won't have to change the numbers.

    Here's the code I'm using :

    array.At(Array.At(Array.IndexOf("Episode"),loopindex), loopindex)

  • Information for the sprites are stored in sprite variables.

    Two variables are manually assigned to the sprites :

    - Episode

    - Sequence

    Name variable has to be assigned runtime from the following array

    I made a "for each sprite loop" to look into the array and pick the sprite that matches two conditions :

    - Array.At(Array.IndexOf("Episode"),Array.IndexOf(Sprite.Episode)) = Sprite.Episode

    - Array.At(Array.IndexOf("Sequance"),Array.IndexOf(Sprite.Sequence)) = Sprite.Sequence

    How do I get the line index of the line that matches the two conditions ?

    Tagged:

  • It works like a charm.

    Thank you !!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My sprites are part of the same family. I'd like to organise them on the Z order so that the smallest sprites in size are at the top and the bigger at the bottom.

    I guess a "for each" loop is involved but don't exactly know how to set it up

    Tagged:

  • Thank you all for your suggestions.

    Giving the same name to the objects in the family sounds like a good idea !

  • When you write action, you mean one action per object in the form of :

    - create Object 1 at X,Y

    - creaste Object 2 at x,Y

    etc, as many lines as there are objects ?

    No way to make a batch create function ?

  • To create each object in a family you need to make a create action for each object. Alternatively you could place them in the layout yourself to avoid making the events.

    is it not possible to have something like :

    - for each object in family

    - create object on layer 0 at x=150, y=150

    I've quite a lot of object in the family and would like to automatize the creating process to save time and have a simple method if I have to make changes (for example the coordinates)

  • My game is an empty scene when layout starts.

    All my objects to be displayed are in a family and they re a lot.

    At start of layout, how do I tell Construct to look into Family and create each object at the centre of the layout(x=layoutWidth/2, y=layoutheight/2) ?

    Tagged:

  • Thank you !

    Construct is full of subtilities :)

  • Amazing !

    thanks for confirming this intuition :)

    (the subfolder trick doesn't work, though)

  • In my project, I use Ajax request a lot, but according to player choice, the requested project file is always different.

    In the following expression, how can I use a variable instead of testFr.srt filename ? For example, filename could be testFr1.srt or testFr2.srt...

    -> AJAX: Request testFr.srt (tag "subFr")

    Can I use Request URL instead ? And if yes, what would be the adress to a project file named testFr.srt

    Tagged:

  • What would be the best screen size to develop a webapp with if I want to fit most of the phones on the market with ?

  • Quite right.

    This works :)

    Now, when scaling one family element, disable touch to other elements