similar problem with Label, but different exception raise:
http://pastebin.com/7Pjr2KAm
I got :
raise GLException(msg)
GLException: invalid operation
In this small sample, a Label in a Layer.
I can update the label.element.text on a key_press.
But if I do it on a Pyglet.Event, I get an exception "GLException:
invalid operation"
I do not see what I am doing wrong :/
On 9 fév, 10:22, Philippe <[email protected]> wrote:
> Hello again ..
>
> I have an issue with the update of my sprites.
> I pasted a small sample that reproduce my problem
> here:http://pastebin.com/KrajS6RX
>
> I set 3 ways of changing the mask of my_sprite.
>
> 1- user can click on the sripte, it reduce the mask width => it works
> well
>
> 2- user can press a key on the Layer, the layer use a
> pyglet.event.EventDispatcher to push an event, my_sprite receive it =>
> it works well too !
>
> 3- I go a thread, in my pyglet.event.EventDispatcher that push an
> event every 5s. my_sprite receive it, but does not update itself in
> the window.
> I tried to add the self.draw() instruction, but got an error:
> GLException: invalid operation
>
> Any idea ?
> If I move the mouse over the window, I got clean refresh, even for
> -3-. I would like to have the same, but without moving the mouse
> around!
>
> thanks
--
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.