tarvit's Forum Posts

  • 4 posts
  • Sorry, I meant "layout".

    So there is no native methods to do this without hacks?

    Maybe there is another API to fetch a list of all layouts and then compare some variable with it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have some convention of layers naming like: "level_0", "level_1", "level_2". And there is logic shared between events sheets.

    I need to implement a function that does "go to layer by dynamic name". But is important to call it only is layer with dynamic name exists.

    Is there API method for that?

    Tagged:

  • lionz thank you for the good question!

    I noticed that my value contains quotes. It was my first instance variable usage, so I thought they are required for a String value. After I removed them it started working.

    This solved my problem.

  • I have a few Sprite objects called Stamp in may layout.

    I have set instance value `.next_layout` with some strings equal to some my layout scenes in the game.

    Then I have a tap event with action - go to layout from selected Stamp.next_layout.

    And this is not working. I have added Stamp.next_layout to debugging text and I see that event is triggered and value in the clicked object is correct. But layout is not changed.

    This `Got to layout` function works fine if I specify a string constant instead of dynamic `Stamp.next_layout`.

    What am I doing wrong?

  • You do not have permission to view this post

  • You do not have permission to view this post

  • 4 posts