Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

Sprites not updating?

$
0
0

Hello,

I am just starting to learn pygame and I am running into a little bit of trouble. I am attempting to have the character do an idle animation while nothing is being pressed. I tried looping through each sprite frame and drawing it to the screen, but only one sprite in the animation is being displayed while the character is idle. If someone can please help point me in the right direction I would greatly appreciate it!

 

game.py

###############################################
#
#   Testing using PyGame to make a 2D game
#
###############################################

import time
import random
import os
import pygame
import Constants
from …

Viewing all articles
Browse latest Browse all 17560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>