This appears to get the total number of channels, not the number of
active channels. However, I tried using get_busy(), but it still does
not seem to work.
See the following modifications to my original code:
import pygame, time
for x in range(10):
print("Starting iteration " + str(x))
On 7/2/08, Wyatt Olson <[EMAIL PROTECTED]> wrote:
>
> Is there anything which can return a list of all currently active channels?
pygame.mixer.get_num_channels()
This returns 0 if none are playing and > 0 if there are.
P.S., you may want to convert your angles to radians with math's handy
radians() function.
Try reversing the sin and cos. Cosine resolves x direction and Sine
resolves y. You have it backwards. Also, if you want to flip the screen
coordinates, the y must be negative.
You also might want to try working with the movements one at a time to
isolate problems.
Ian
Hi all, I've been trying to rotate and move forward a tank in a game I'm
developing but something strange happens.
When the tank is rotating and moving it tends to move to the up-left corner
and I don't know why.
Anyone knows what's happen?
Thank you all!
Here is the code:
def do_actions(
Any chance the music from python file-like objects can go in?
See conversation "Patch - Re-add music support for file-like objects" for it.
Forrest
On Wed, Jun 25, 2008 at 8:41 PM, Lamonte(Scheols/Demonic)
<[EMAIL PROTECTED]> wrote:
> pygame 1.9 pff I'm waiting for Pygame 2.0 B-)
>
> On Wed, Jun
um... thanks but we're talking about licensing pygame projects, not the
python codebase.
techtonik wrote:
On Mon, Jun 30, 2008 at 7:58 AM, James Paige <[EMAIL PROTECTED]>
wrote:
I notice LGPL is used on a lot of pygame projects. Is that because
pygame itself uses LGPL? It makes sense for p
I have not done that, as I don't keep track of channels after they are
obtained and started playing. Is there anything which can return a list
of all currently active channels?
Now that being said, in my real program, I am able to recreate the bug
even when waiting for all currently playing s
Did you try calling Channel.stop before calling quit?
Lenard
Wyatt Olson wrote:
This seems to work. It would be nice to be able to re-init the mixer,
in case there were different bitrates, but if that can't work, I can
just specify that the samples must all be the same bitrate.
Thanks for
On Mon, Jun 30, 2008 at 7:58 AM, James Paige <[EMAIL PROTECTED]>
wrote:
> I notice LGPL is used on a lot of pygame projects. Is that because
> > pygame itself uses LGPL? It makes sense for pygame to use LGPL because
> > it's a huge, widely used library but it's not apparent as to why the
> > gam
10 matches
Mail list logo