Re: Pygame mouse cursor load/unload

2013-03-18 Thread Alex Gardner
On Monday, March 18, 2013 3:24:57 PM UTC-5, Alex Gardner wrote: > On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > > > I am in the process of making a pong game in python using the pygame > > library. My current problem is that when I move the mouse, it turns off as > > soon a

Re: Pygame mouse cursor load/unload

2013-03-18 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by making the default

Re: Pygame mouse cursor load/unload

2013-03-14 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by making the default

Re: Pygame mouse cursor load/unload

2013-03-14 Thread Ian Kelly
On Thu, Mar 14, 2013 at 4:16 PM, Alex Gardner wrote: > It's all working now with one exception. I just want to arrange the paddle > to the right side. I managed to do just that, but it won't move freely > vertically. I am not fully aware of the arguments of pygame.Rect(). I recommend you rea

Re: Pygame mouse cursor load/unload

2013-03-14 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by making the default

Re: Pygame mouse cursor load/unload

2013-03-14 Thread Ian Kelly
On Tue, Mar 12, 2013 at 5:33 PM, Alex Gardner wrote: > Sorry but im back to square one. My paddle isn't showing up at all! > http://pastebin.com/PB5L8Th0 paddle_rect.center = pygame.mouse.get_pos() This updates the paddle position. screen.blit(beeper, paddle_rect) This draws the padd

Re: Pygame mouse cursor load/unload

2013-03-12 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by making the default

Re: Pygame mouse cursor load/unload

2013-03-11 Thread Ian Kelly
On Mon, Mar 11, 2013 at 2:43 PM, Alex Gardner wrote: > I tried to append what you told me to. Now it appears that I have a syntax > error! I checked my indentations and they look fine to me, but I get this > error: > > paddle_pos = pygame.mouse.get_pos() >

Re: Pygame mouse cursor load/unload

2013-03-11 Thread MRAB
On 11/03/2013 20:43, Alex Gardner wrote: On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: I am in the process of making a pong game in python using the pygame library. My current problem is that when I move the mouse, it turns off as soon as the mouse stops moving. The way I

Re: Pygame mouse cursor load/unload

2013-03-11 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by making the default

Re: Pygame mouse cursor load/unload

2013-03-11 Thread Ian Kelly
On Mon, Mar 11, 2013 at 11:33 AM, Alex Gardner wrote: > My bad! http://pastebin.com/yuvpT7bH You're still drawing the blank paddle in two different places. One of those places is immediately after you draw the paddle, which undoes the work you just did in drawing it. That's why you're not seei

Re: Pygame mouse cursor load/unload

2013-03-11 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by making the default

Re: Pygame mouse cursor load/unload

2013-03-11 Thread Ian Kelly
On Mon, Mar 11, 2013 at 11:00 AM, Alex Gardner wrote: > I added the blank paddle and now the green one is just gone. I feel like > such a newbie >< > > > screen.blit(bpaddle, paddle_rect) We're not psychic, so you'll need to post the current code if you want any suggestions on how to fix it.

Re: Pygame mouse cursor load/unload

2013-03-11 Thread Alex Gardner
On Monday, March 11, 2013 12:00:37 PM UTC-5, Alex Gardner wrote: > On Monday, March 11, 2013 11:57:49 AM UTC-5, Alex Gardner wrote: > > > On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > > > > > > > I am in the process of making a pong game in python using the pygame > > > li

Re: Pygame mouse cursor load/unload

2013-03-11 Thread Alex Gardner
On Monday, March 11, 2013 11:57:49 AM UTC-5, Alex Gardner wrote: > On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > > > I am in the process of making a pong game in python using the pygame > > library. My current problem is that when I move the mouse, it turns off as > > soon

Re: Pygame mouse cursor load/unload

2013-03-11 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by making the default

Re: Pygame mouse cursor load/unload

2013-03-10 Thread Ian Kelly
On Sun, Mar 10, 2013 at 4:25 PM, Alex Gardner wrote: > Now the cursor isn't moving at all! > > while True: > for event in pygame.event.get(): > if event.type == QUIT: > sys.exit() > > screen.blit(bpaddle, paddle_rect) > # Draw the net

Re: Pygame mouse cursor load/unload

2013-03-10 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by making the default

Re: Pygame mouse cursor load/unload

2013-03-10 Thread Ian Kelly
On Sat, Mar 9, 2013 at 5:25 PM, Alex Gardner wrote: > On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: >> I am in the process of making a pong game in python using the pygame >> library. My current problem is that when I move the mouse, it turns off as >> soon as the mouse stops

Re: Pygame mouse cursor load/unload

2013-03-09 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by making the default

Re: Pygame mouse cursor load/unload

2013-03-09 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by making the default

Re: Pygame mouse cursor load/unload

2013-03-03 Thread Ian Kelly
On Sun, Mar 3, 2013 at 3:09 PM, Alex Gardner wrote: > if (0,0) <= paddle_pos <= (300,300): This doesn't do what you think it does. Tuples are compared lexicographically, not element-wise. So (250, 350) < (300, 300), but (350, 250) > (300, 300). > paddle_pos = pygame.mouse.get_pos(

Re: Pygame mouse cursor load/unload

2013-03-03 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by making the default

Re: Pygame mouse cursor load/unload

2013-03-03 Thread Alex Gardner
On Saturday, March 2, 2013 7:56:31 PM UTC-6, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by making the default

Re: Pygame mouse cursor load/unload

2013-03-02 Thread Alex Gardner
On Saturday, March 2, 2013 9:08:18 PM UTC-6, Ian wrote: > On Sat, Mar 2, 2013 at 6:56 PM, Alex Gardner wrote: > > > I am in the process of making a pong game in python using the pygame > > library. My current problem is that when I move the mouse, it turns off as > > soon as the mouse stops mo

Re: Pygame mouse cursor load/unload

2013-03-02 Thread Ian Kelly
On Sat, Mar 2, 2013 at 6:56 PM, Alex Gardner wrote: > I am in the process of making a pong game in python using the pygame library. > My current problem is that when I move the mouse, it turns off as soon as > the mouse stops moving. The way I am doing this is by making the default > cursor i

Pygame mouse cursor load/unload

2013-03-02 Thread Alex Gardner
I am in the process of making a pong game in python using the pygame library. My current problem is that when I move the mouse, it turns off as soon as the mouse stops moving. The way I am doing this is by making the default cursor invisible and using .png files as replacements for the cursor.