Hello everyone, I'm working on this game: http://www.youtube.com/watch?v=9FozGla_Brw
- in the video you can see that by left clicking anywhere you spawn objects but I'm having real difficulty learning how to limit the number of objects you can spwan.
Does anyone know a way of allowing me to have an energy bar which gradually depletes as you add objects to the screen but when it is empty, it stops you being able to spawn the objects. Then, it gradually re-fills.
This is the only thing stopping me from cracking on with this game which I think is quite a cool idea.
Any help would be massivly appreciated!