How does one update the text field in a label on the fly, for instance
in a step method?
def step(self, dt):
self.elapsed += dt
self.elapsedLabel.text = str(dt)
return True
where:
self.elapsedLabel = cocos.text.Label('#',
font_name='Times New Roman',
font_size=16,
anchor_x='center', anchor_y='center')
I noticed that pyglet labels have begin_update and end_update methods,
but did not see these for cocos2d labels.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---