3 levels and 5 lives… here’s the link: Block Breaker Updated
Modified the paddle - makes the game easier to win. Still can’t get lives to display on the game screen (I have it working on the scene, but won’t display on game)
3 levels and 5 lives… here’s the link: Block Breaker Updated
Modified the paddle - makes the game easier to win. Still can’t get lives to display on the game screen (I have it working on the scene, but won’t display on game)
This is great! Love the sounds and music. The only thing I would recommend is having a lives counter, otherwise it’s easy to lose track.
Thanks a lot James. I did try to put a lives counter on screen but I just couldn’t get it to work. Maybe I’ll give it another try now that it’s done.
Vince
Heh fair enough. I couldn’t even get as far as adding lives. Maybe it’s because I put the counter in first and tried to work back from there…
Should be fairly easy to integrate a life counter though right? I imagine you have an int count of the lives so that you can lose the level appropriately if they all get used up - so you just need some text that the lives int prints to after the lose collider is hit.
I would be interested to hear about your progress 
Hi Oscar,
I have it all working in the scene, but for some reason I can’t get the text to display on the game screen.
Would you be able to put in a new object with text component, and use the same script that tracks life count to also print the current life count to the text object? - kind of like what we did in Number Wizard UI for the guess counter, where the text with the current guess would update in response to what the player chose (higher or lower)?
I guess you’ve already tried this though, so what do you mean it isn’t displaying? It isn’t updating the text? Or the text itself is missing when you start the game?
Also sorry if I don’t have the correct jargon btw.
Yes – I used the Number Wizard code as my example. If I look at the scene as I’m playing I see the lives counter working correctly, but in the game screen it does not show at all. I’m kind of frustrated that I can’t get it to show on the game.
Is it just an issue of needing to place the counter as a child of the canvas in your hierarchy? - or moving it to the camera area? Maybe check the z axis as well?