jbar6381's Forum Posts

  • Thank you very much OddConfection and The key was to have the System > On start of layout repeat the assignment of the global variable text to the text object.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a global variable for the text to set the Text Object's value. It still doesn't work.

    This is my set up:

    * Layout 1 & Layout 1 Event Sheet - two buttons; button 1 calls a function called "update" in the Function Event Sheet, button 2 goes to Layout 2.

    - a global variable initialised to 0.

    - a text object that is set to the global variable value.

    * Function Event Sheet - has a function called "update" which increments the global variable by 1.

    * Layout 2 & Layout 2 Event Sheet - has two buttons; button 1 calls a function called "update" in the Function Event Sheet, button 2 goes to Layout 1.

    Result:

    Layout 1 sets the text value to the global variable value correctly, but not Layout 2.

    A click of button 1 on Layout 1 updates the text object to a value of "1".

    Once we click to go to Layout 2 and press the button to update the global variable, then go back to layout 1, the text object has a value of "Text".

    A press of button 1 on Layout 1 updates the global variable to "2".

  • I have a text object in my main layout (Let's call this A), and I have a second layout (B) that opens up from the main layout (A) via a button click. I want to alter the text object in (A) when I change settings on (B). How do I do this without databases? Is this possible?