# How can I update a text object dynamically in the Blender Game Engine?

I have seen examples of HUD's showing a dynamic count of either ammunition or objects. I have the general idea of what I want, but I need to know how to update a text object dynamically in the game engine. My use case would be like so: on [collide with collectible] update[stockpile = stockpile + 1].

Basically, I want to add one to a value (dynamically displayed in a text element) every time the player collides with a certain type of mesh.

• do you mind using the actual text object? If so it is easy. – David May 2 '15 at 1:56
• NoviceInDisguise? using BGE???? unheard of. – Scalia May 2 '15 at 15:03
• @VinceScalia lol, IKR? I'm even making a game o.O – VRM May 3 '15 at 1:25