Scaling Problem with Pygame
Question: When I attempt to scale an object, only the top and left of the image get
bigger. The rest stays the same. I want an even scale.

    
    
    import pygame._view
    import pygame, sys
    from pygame.locals import *
    import random
    pygame.init()    
    
    
    barrel = pygame.image.load("images\Barrel.gif")
    barrelx = 0
    barrely = 0
    
    while running:
    
        barrel = pygame.transform.scale(barrel, (int(barrely/4), int(barrely/4)))
        screen.blit(barrel, (barrelx, barrely))
    

barrely is always getting bigger (as a number) until it gets off-screen. I'm
using Python 2.7 on Windows XP.


Answer: Shouldn't that be:

    
    
    import pygame._view
    import pygame, sys
    from pygame.locals import *
    import random
    pygame.init()    
    
    
    barrel = pygame.image.load("images\Barrel.gif")
    barrelx = 0
    barrely = 0
    
    while running:
    
        barrel = pygame.transform.scale(barrel, (int(barrelx/4), int(barrely/4)))
        screen.blit(barrel, (barrelx, barrely))
    

In your code you give barrely for both the width _and_ the height of the
pygame.transform.scale()

Also I can't see where you update barrelx and barrely. In the code you pasted
barrelx and barrely will always be 0.

