1 decade ago by Nico
update: function() { this.moveToFront(); var bullets = ig.game.bullets; if(bullets > 0) { ig.game.statText.draw(bullets, this.pos.x, this.pos.y); console.log(bullets); } this.parent();
So I'm trying to build an inventory system from scratch this morning and the first order of business will be displaying the count of your items in text form.
The above code does everything I want it too except draw the text. I've tried a ton of different ways but none of them have worked so far.
If anyone can shed light on what I would imagine is a pretty simple problem I'd really appreciate it.