best pratice?

  • ibb.co/Jcp63N8

    for do a great job is better make all action in 1 everytick?? or every action take him every tick??

  • I normally suggest that you avoid "Every tick" actions when updating GUI. Usualy the best practice is to have a Function that updates the GUI that you call whenever it needs updating, that is, after events that change one or more information shown.

    On updateGUI
    -------+ TextScore | Set text to "Score: " & score
    -------+ TextGoldDiamond | Set text to golddiamond
    ...
    

    Hope this helps.

    Cheers!

  • I normally suggest that you avoid "Every tick" actions when updating GUI. Usualy the best practice is to have a Function that updates the GUI that you call whenever it needs updating, that is, after events that change one or more information shown.

    > On updateGUI
    -------+ TextScore | Set text to "Score: " & score
    -------+ TextGoldDiamond | Set text to golddiamond
    ...
    

    Hope this helps.

    Cheers!

    i think is better your solution but have some problema to make this.. i try but no found "On updateGUI" where is???

    anyone can teach me???

  • No, he's saying to have a function named "updateGUI" with those actions and to call it whenever have an event changing score or gold/diamond.

  • No, he's saying to have a function named "updateGUI" with those actions and to call it whenever have an event changing score or gold/diamond.

    how can I build it too?

  • Hey urkokan!

    Check this file for an example of a simple GUI updating function.

    Hope this helps.

    Cheers!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey urkokan!

    Check this file for an example of a simple GUI updating function.

    Hope this helps.

    Cheers!

    how to open?? is cp

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)