Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Label batch drawing problems
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
darkfeline  
View profile  
 More options Sep 3 2012, 5:30 pm
From: darkfeline <cyberdup...@gmail.com>
Date: Mon, 3 Sep 2012 14:30:08 -0700 (PDT)
Local: Mon, Sep 3 2012 5:30 pm
Subject: Label batch drawing problems

I'm running into a weird bug with drawing Labels in batches.  Because I
want loose coupling between game data and the view,  I've come up with the
following model:  game objects create their sprites (and Labels), and then
adds them to a Batch (and OrderedGroup) via an event system.  This works
fine for the sprites, but I'm running into problems trying to get the
labels to draw.

Here's how the labels are added to the batch: http://pastebin.com/DjRa2eHL

I've checked coordinates and colors and draw order, and none of those seem
to be the problem.  I have gotten *one* Label to draw properly, a custom
FPS class whose text is updated every second.  However, this only draws a
second after the game starts (presumably when the text is updated).  
However, updating the text on the other Labels don't make them draw.

I'll admit I'm still getting to know pyglet, so if I'm forgetting something
simple, please forgive me.  But this bug is giving me a hell of a headache,
so any help is appreciated.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Sep 5 2012, 12:40 am
From: Nathan <nathan.sto...@gmail.com>
Date: Tue, 4 Sep 2012 22:40:17 -0600
Local: Wed, Sep 5 2012 12:40 am
Subject: Re: Label batch drawing problems

I read through your code, and didn't notice anything glaringly obvious to
someone who doesn't use Groups and Batches.

~ Nathan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
darkfeline  
View profile  
 More options Sep 6 2012, 3:30 pm
From: darkfeline <cyberdup...@gmail.com>
Date: Thu, 6 Sep 2012 12:30:40 -0700 (PDT)
Local: Thurs, Sep 6 2012 3:30 pm
Subject: Re: Label batch drawing problems

On Wednesday, September 5, 2012 12:40:19 AM UTC-4, Nathan wrote:

> I read through your code, and didn't notice anything glaringly obvious to
> someone who doesn't use Groups and Batches.

> ~ Nathan

Don't use Groups and Batches!  Do you draw sprites individually?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan  
View profile  
 More options Sep 6 2012, 4:55 pm
From: Nathan <nathan.sto...@gmail.com>
Date: Thu, 6 Sep 2012 14:55:13 -0600
Local: Thurs, Sep 6 2012 4:55 pm
Subject: Re: Label batch drawing problems

On Thu, Sep 6, 2012 at 1:30 PM, darkfeline <cyberdup...@gmail.com> wrote:

> On Wednesday, September 5, 2012 12:40:19 AM UTC-4, Nathan wrote:

>> I read through your code, and didn't notice anything glaringly obvious to
>> someone who doesn't use Groups and Batches.

>> ~ Nathan

> Don't use Groups and Batches!  Do you draw sprites individually?

> Oops, mispoke!  I use Sprites and Batches.  I haven't had to deal with

that for so long that I forgot the batch was involved.

~ Nathan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »