SnippetEventCOLLECT ITEMSCollect Items Place objects wherever you wantPlace the items wherever you want.It’s hard to stay organized when you have a lot of items, so it’s a good idea to make the title easier to read.🚫Don’t forget to check Body in the object’s properties panel to use methods like onCollide! Physics > Body Place items 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"); function Start() { diamond0.onCollide(PLAYER, () => { diamond0.kill(); }); diamond1.onCollide(PLAYER, () => { diamond1.kill(); }); diamond2.onCollide(PLAYER, () => { diamond2.kill(); }); diamond3.onCollide(PLAYER, () => { diamond3.kill(); }); diamond4.onCollide(PLAYER, () => { diamond4.kill(); }); }Here’s a slightly improved example of usage, minimizing redundant lines.function Start() { // 5 diamonds for (let i = 0; i < 5; i++) { const diamond = WORLD.getObject("diamond" + i); diamond.onCollide(PLAYER, () => { diamond.kill(); }); } }Breakable PlatformItem Count