d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Iso Pygame Help! Python 3 > Code Inside
Add Reply New Topic New Poll
Member
Posts: 21,933
Joined: Jul 7 2008
Gold: 5,480.00
Nov 29 2017 07:44pm
I am trying to have different images fall down from the top but it only loads once
i understand a loop is needed but even after a fair amount of digging, i still havent found my solution

I need it to run a new choice around every 3 seconds




#load our first fruit
banana = pygame.image.load('banana.jpg')
# load our other fruits
cherry = pygame.image.load('cherry.jpg')
fruit = [banana,cherry]
#post = cherry
while pygame.time.Clock() == True:
post = random.choice(fruit)


theres the code i had for it so far.
if you're familiar, this is based off of "A bit Racey" code
Member
Posts: 6,114
Joined: Jul 11 2007
Gold: 35.78
Jan 4 2018 11:24am
how did you make out with this?
I can program in python and if you would like some help with this can you please post your full code?
Pygame is really easy to get things going however I have moved away from it some in order to do some other stuff with older opengl and gamepads.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll