SnippetEventCOLLECT ITEMSItem CountMake it count on the screen when an item is acquired Select your desired GUI you wantSelect the desired GUI and put it to scene. Place GUI Codeexample 1example 2Hereβs a basic example of how to do it. For an enhanced solution, refer to Example 2 ππΌconst diamond0 = WORLD.getObject("diamond0"); const diamond1 = WORLD.getObject("diamond1"); const diamond2 = WORLD.getObject("diamond2"); const diamond3 = WORLD.getObject("diamond3"); const diamond4 = WORLD.getObject("diamond4"); //intialize gui const showpoint = GUI.getObject("guiBoardTitle"); let diamondCount = 0; showpoint.setText(diamondCount); function Start() { diamond0.onCollide(PLAYER, () => { diamond0.kill(); diamondCount += 1; showpoint.setText(diamondCount); }); diamond1.onCollide(PLAYER, () => { diamond1.kill(); diamondCount += 1; showpoint.setText(diamondCount); }); diamond2.onCollide(PLAYER, () => { diamond2.kill(); diamondCount += 1; showpoint.setText(diamondCount); }); diamond3.onCollide(PLAYER, () => { diamond3.kill(); diamondCount += 1; showpoint.setText(diamondCount); }); diamond4.onCollide(PLAYER, () => { diamond4.kill(); diamondCount += 1; showpoint.setText(diamondCount); }); }Hereβs a slightly improved example of usage, minimizing redundant lines.//intialize gui const showpoint = GUI.getObject("guiBoardTitle"); let diamondCount = 0; showpoint.setText(diamondCount); function Start() { // since we have 5 diamonds for (let i = 0; i < 5; i++) { const diamond = WORLD.getObject("diamond" + i); diamond.onCollide(PLAYER, () => { diamond.kill(); diamondCount += 1; showpoint.setText(diamondCount); }); } }onCollide() requires the Physics Body to be active in order to function. Physics > BodyGUI ResultCOLLECT ITEMSOpen blocked walls when conditions are met