lionz's Forum Posts

  • I mean both your posts now contain no information about the problem so not sure how I can help further.

  • Ah okay you changed it to a local variable, don't move the globals there is no need to organise them or whatever you were trying.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • A folder? Can you share a screenshot?

  • Are they local variables in the screenshot? Also of course they work.

  • There is a condition with the Sprite object to pick the top-most sprite, does that resolve it ?

  • For that to happen you would need to delete the global variables. The position of the global variables doesn't matter, no need to put them in a group.

  • In debug preview you can see if the variable is as expected. Setting the text to show the variable is different, you can set an event every tick > set text to variable then it will be correctly showing the variable.

  • If you are going to write events like this it's good to get used to debugging and logging. Add the Browser object to log the output and see if it's as expected.

  • You have to be careful when using waits in functions because they continue to run and depending on how you structured it you could be running events at the bottom first. Adding the wait to the top doesn't mean it will wait to run the rest of the function if there are multiple conditions.

    As described you could use the Timer behaviour for the display thing. Start a timer and then make use of 'on timer complete', then no need to use a function or waits.

  • You just need to set the text to show the global variable. As the variable changes it will update on the text.

  • Hehe this place has been getting quieter ever since the community discord server appeared...

  • Did you make the object global? That's what it looks like.

  • Using System : compare two values, it is

    LeftInBox=5 | LeftInBox=12 | LeftInBox=15 | LeftInBox=22 | LeftInBox=25

    is equal to

    1

  • Merry Christmas

  • From what I can see, yes. Construct team has yet to weigh in on whether it's as designed. It makes a little sense because when you load a game and you are in a different layout it is like changing layout. It is better to combine trigger once with something else. If you want to trigger it once on start of layout then you have the condition there for start of layout (this will not trigger when the game is loaded).