Hi, all. Hoping someone can tell me find what I have missed with the hitBomb() in part 10 of the tutorial. I currently have the bomb appear when all stars are collected and a new set of stars appear to start the process again (which adds another bomb). However, the bombs do not collide with the platforms and in my code, when passing in bomb as the second argument I have vscode show me this message.
/* “bomb” is declared but its value is never read */
hey samme, thanks for the quick reply. Apologies, I should have mentioned in my post that there are no errors showing in the console.
I am just not sure where to place the bomb variable in my code so that it will be used by the function. I have placed it outside of the main constructor (as i have with others and those variables work fine) and also tried placing it in several places within the constructor class. Im very confused haha