SgtMe 46 Veteran Poster Featured Poster

@Kanaku: lol take it down!
@Shankums: *AHEM* your turn was meant to be 201...
203

SgtMe 46 Veteran Poster Featured Poster

197

SgtMe 46 Veteran Poster Featured Poster

shop -> buy

SgtMe 46 Veteran Poster Featured Poster

I thought PyGoogle was dead?
http://pygoogle.sourceforge.net/

"Unfortunately, Google no longer supports the SOAP API for search, nor do they provide new license keys. In a nutshell, PyGoogle is pretty much dead at this point."

SgtMe 46 Veteran Poster Featured Poster

199

SgtMe 46 Veteran Poster Featured Poster

"(s)AINT" - Marilyn Manson

SgtMe 46 Veteran Poster Featured Poster

OK. I still can't figure out how to get your code working :/ I'll keep looking around though.

SgtMe 46 Veteran Poster Featured Poster

charity -> money

SgtMe 46 Veteran Poster Featured Poster

^ Is laid back
< Is wondering what to do...
V Doesn't know what they got into 0.o :L

SgtMe 46 Veteran Poster Featured Poster

199...you do know you could have counted down in your little convo up there :L

SgtMe 46 Veteran Poster Featured Poster

nightmare -> falling

SgtMe 46 Veteran Poster Featured Poster

237

SgtMe 46 Veteran Poster Featured Poster

"Bittersweet Memories" - Bullet For My Valentine

SgtMe 46 Veteran Poster Featured Poster

I don't think 5 lines is much effort. Sorry.

SgtMe 46 Veteran Poster Featured Poster

251

SgtMe 46 Veteran Poster Featured Poster

You would want some kind of input for detecting whether the user wants to go left or right. Consider using a loop to load the images into an array. For example, if you have the following file structure.

-main.py
-Pictures:
     -pic0.png
     -pic1.png
     -pic2.png
     -pic3.png

You could load the images like so:

import pygame
from pygame.locals import *

pygame.init()

print 'ENTER HOW MANY IMAGES IN GALLERY'
n=int(raw_input())


Pics=[]
BasePath="./Pictures/pic"
for i in range(0, n):
	print i
	Pics.append(pygame.image.load(BasePath+str(i)+".png"))
	print Pics[i]

I've attatched a Zip with the stuff in it so you can take a look if you want. I used pygame just for the image loading. The actual part of the program that loads images into the list is very short.

I even included asking the user how many images there were. However, you will need to be able to check for an error if the user puts in a value of n that is greater than the amount of images in the pictures folder or wherever.

You should have a variable which determines which number image you are on. This number should obviously change with user input (left or right adding or subtracting one), but making sure that when you hit zero, going down will make you go up to the top number, and when you get to the top, going round to zero again.

With regards to entering how many pictures are in the gallery, you can easily relate this to the range in my …

SgtMe 46 Veteran Poster Featured Poster

247...shame i have to go in a minute :(

SgtMe 46 Veteran Poster Featured Poster

243...the long climb back up, eh?

SgtMe 46 Veteran Poster Featured Poster

Firstly, I am getting this error when I run into the top of the screen. It crashes the program.

Traceback (most recent call last):
  File "C:\Users\Mark\Downloads\game\Game.py", line 34, in <module>
    GameMain()
  File "C:\Users\Mark\Downloads\game\Game.py", line 30, in GameMain
    player.Move()
  File "C:\Users\Mark\Downloads\game\Handlers.py", line 95, in Move
    gfx.BlitBackground(self.X, self.Y) #Blit background again
  File "C:\Users\Mark\Downloads\game\Handlers.py", line 13, in BlitBackground
    self.surf = pygame.surface.Surface((X, Y))
error: Invalid resolution for Surface

Still looking through...

SgtMe 46 Veteran Poster Featured Poster

239

SgtMe 46 Veteran Poster Featured Poster

237

SgtMe 46 Veteran Poster Featured Poster

relax -> sleep

SgtMe 46 Veteran Poster Featured Poster

OK. Just keep us updated :)

SgtMe 46 Veteran Poster Featured Poster

"Misery Business" - Paramore.

SgtMe 46 Veteran Poster Featured Poster

235

SgtMe 46 Veteran Poster Featured Poster

Well let's see your attempt and we will help you out with it.

SgtMe 46 Veteran Poster Featured Poster

I wasn't actually, but it did happen. It's somewhere back in the other pages.
Fair point Direwolf :)
We still won ;)
267

SgtMe 46 Veteran Poster Featured Poster

It's YOUR exam. Not ours. If you show some effort, we can help you, BUT, we won't write it for you.

SgtMe 46 Veteran Poster Featured Poster

"Enough" - Disturbed

SgtMe 46 Veteran Poster Featured Poster

ok youll win the second round...but dont ever forget that you didnt win in the first place? ;)

SgtMe 46 Veteran Poster Featured Poster

427

SgtMe 46 Veteran Poster Featured Poster

423

SgtMe 46 Veteran Poster Featured Poster

http://www.koders.com/c/fidAFD244F63A431E188774EE14C972A5B3FD8F433D.aspx?s=ftp
That has a download link.
Looking through the code...
You may need this as well (features.h)
http://www.koders.com/c/fid4B72990CAFE31EDE806801FF5F38AEBC9B04D1AA.aspx?s=ftp
Have a look and see what you think :)

SgtMe 46 Veteran Poster Featured Poster

What's your current problem?
You could upload your game files in a zip and I could have a look and try to get it working.

WildBamaBoy commented: Very nice to offer +1
SgtMe 46 Veteran Poster Featured Poster

chair -> sit

SgtMe 46 Veteran Poster Featured Poster

hmmm...i think you might win...no matter, we already did.
421

SgtMe 46 Veteran Poster Featured Poster

Sorry what do you want us to vote on?

SgtMe 46 Veteran Poster Featured Poster

Problem solved yet?

SgtMe 46 Veteran Poster Featured Poster

Make sure the header is in your include directory of the compiler/IDE. If you don't have the file, don't use it.

SgtMe 46 Veteran Poster Featured Poster

stone -> rock

SgtMe 46 Veteran Poster Featured Poster

Yeah. Finally worked out that the registry was corrupted and it affected all my games. Tried to restore to previous version, messed up other things, backed up...
Formatted hard drives and reinstalled. Thankfully it's all working and I'm out on top :)

"(s)aint" - Marilyn Manson

SgtMe 46 Veteran Poster Featured Poster

hero -> sword

SgtMe 46 Veteran Poster Featured Poster

Get rid of your current main function, and change line 6

void prog(int rtestart)

to

int main()

Please upvote my above post seeing as it helped you out. Thanks.

PS. Check that your braces all match up after the above!!!

SgtMe 46 Veteran Poster Featured Poster

Nothing. Had to clean install windows, and I have nothing as of yet :D

SgtMe 46 Veteran Poster Featured Poster

OMFG! Holy **************************
Ummmm...I mean...good job guys :)
491 (the long climb back up)
At least we've already won it once :D

SgtMe 46 Veteran Poster Featured Poster

669.

SgtMe 46 Veteran Poster Featured Poster

"Non-musical silence" - Marilyn Manson

SgtMe 46 Veteran Poster Featured Poster

flex -> string

SgtMe 46 Veteran Poster Featured Poster

OK, so you need your background image to be replaced in the dirty areas that have been updated? If you made a new pygame surface and blitted the background image onto it, you could use that. BUT, you must make sure that when you blit it, you blit the background image with negative x and y coordinates, so that it lines up properly with where you want it to go.

eg.

- Updated rectangle (5, 5, 10, 10)
- Make new 5*5 surface (surf)
- Blit background to surf (-5, -5)
- Blit surf to screen, BEFORE blitting the character.

SgtMe 46 Veteran Poster Featured Poster

665 lol