[Solved] lesson 12 bug ?

The Partridge Family were neither partridges nor a family. Discuss.
Raimond
Posts: 16
Joined: January 30th, 2014, 1:54 pm

Re: lesson 12 bug ?

Post by Raimond » February 6th, 2014, 6:46 pm

Pindrought wrote:Edit: Seriously Luis I was so close, can't believe you beat me by 1 minute! XD

Here's the issue.
Look at your function: Game::ComposeFrame()

Code: Select all

DrawCursor( baseX + cursorX + squareSize, baseY + cursorY + squareSize );
This is VERY close to correct. However it isn't. :'(

The issue here, is you are doing cursorX+squareSize and cursorY+squareSize

You should be multiplying those two.

So, change that line to

Code: Select all

DrawCursor( baseX + cursorX * squareSize, baseY + cursorY * squareSize );
And Tah'Dah! That shit is like magic.

i don't know how i missed it... i looked at that line for hours and still didn't figure it out... thank you for your time

Post Reply