The script 'as is' seems to work ok here, with win7 and ati radeon video hardware, meaning pressing 'C' switches the sprite image between two poses, both displaying normal.
I'm missing something ? On Wed, Oct 18, 2017 at 7:44 PM, Alan Etkin <[email protected]> wrote: > Hi > > Loading media with pyglet.resource... at the main scope of my cocos > script (simple hello world example with keyboard event) does weird stuff in > Windows: if you call the command twice for different media, just the first > is "visible" on screen, no error thrown. The media object looks ok (same > values as the one that is actually working), but it does not show on > screen. I don't get it :P. I've solved the issue by calling the resource > commands on node init method. Then everything is fine. Just wondering what > would be the cause of the odd behavior. I attach a code example (the one > that failed). > > Regards > > -- > You received this message because you are subscribed to the Google Groups > "cocos2d discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/cocos-discuss. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/cocos-discuss. For more options, visit https://groups.google.com/d/optout.
