Skip to content Skip to sidebar Skip to footer

Side Scrolling Background (python) - Not 100% Working

Hi there i am working on a side scrolling abckground to put in my game, heres what ive got at the moment: import pygame import sys import pygame.sprite as sprite theClock = pygame

Solution 1:

i struggled with a parallax effect in my 'game' as well. I would suggest this to you: http://www.pygame.org/project-pyParallax-2623-.html

download the module, and run and disassemble the demo, it is very easy to understand and replicate. (Hint: the parallax.ParallaxSurface.add() method has a third argument you can pass to it that will scale your image appropriately for you. Very Very easy to use module.

Post a Comment for "Side Scrolling Background (python) - Not 100% Working"