Lesson 8 problems..

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
User avatar
boozfob
Posts: 7
Joined: June 8th, 2012, 2:22 pm
Location: Somewhere in sweden

Lesson 8 problems..

Post by boozfob » June 21st, 2012, 8:48 pm

Hi i just watched the lesson 8 and i did (i think at least) everything just as u did..
But something is wrong

Game.cpp
http://pastebin.com/rrr11WBe

Game.h
http://pastebin.com/CgL77gN8

(the reason i put them on pastebin is that the max length of a post is 60000 charscters and my was over 100k)

I have no idea what i did wrong but the problem is following:
1 = poo1 and 2 = poo2 and 3 = poo3
If i take the poop like this
1,2,3 i get the game over when i take the 2nd and it disapear when i take the 3rd
if i do it like this
2,3,1 it shows when i take 2 and then disapears when i take the 3 and nothing happens when i take the 1

so something is wrong with the poo2, and that makes the whole if statement ( if( !( poo1IsEaten && poo2IsEaten && poo3IsEaten ) )) true when only the 2nd poop is collected and when i take another poop it gets false again, im very confused and thanks in advance :3
My computer specs : Gtx 580 sparkle edition | i5 2500k | h100 cooling | Antec 1200 chassi| 6gb of cheap RAM | Gigabyte P67A-UD4 B3 | LG 23" TFT W2363D-PF 120Hz |

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: Lesson 8 problems..

Post by LuX » June 21st, 2012, 10:00 pm

1. How about uploading the whole project?

2. We don't care much about lines and lines of PutPixel

3. Your problem is poo3

4. Look at poo3 and how game over is drawn

5. Realize the problem

6. Fix the problem

7. There would usually be question marks here, but the connection to the profit is obvious

8. Profit!
ʕ •ᴥ•ʔ

User avatar
XxWalKaxX
Posts: 244
Joined: June 11th, 2012, 7:15 pm

Re: Lesson 8 problems..

Post by XxWalKaxX » June 22nd, 2012, 1:27 am

i love that haha when ppl say i did it just like chili did but is still dont work haha
What you call a bug...I call a new feature!

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Lesson 8 problems..

Post by chili » June 22nd, 2012, 4:26 pm

Oh yeah, I love that too. :/
Chili

User avatar
boozfob
Posts: 7
Joined: June 8th, 2012, 2:22 pm
Location: Somewhere in sweden

Re: Lesson 8 problems..

Post by boozfob » June 22nd, 2012, 5:09 pm

XxWalKaxX wrote:i love that haha when ppl say i did it just like chili did but is still dont work haha
(i think at least)
My computer specs : Gtx 580 sparkle edition | i5 2500k | h100 cooling | Antec 1200 chassi| 6gb of cheap RAM | Gigabyte P67A-UD4 B3 | LG 23" TFT W2363D-PF 120Hz |

User avatar
npissoawsome
Posts: 114
Joined: June 8th, 2012, 3:01 pm

Re: Lesson 8 problems..

Post by npissoawsome » June 22nd, 2012, 6:19 pm

XxWalKaxX wrote:i love that haha when ppl say i did it just like chili did but is still dont work haha
yeah this guy said he thought he did everything right...

Post Reply