Yeah, I was kinda thinking the code you posted was to be used to get it to work. But also if I write my code how I get the advice I can sometimes see how and why it works.
At the moment I have all the movement and things set up to work correctly.
The only thing I'm working on at the moment, is to have my rectangles co-ordinates set into an array and then pass this array into the collision detection.
So for example (I know this isn't code format but easier to do for me)
RectangleBoundingBox say has 2 rectangles to store data for
(x, y, w, h)
So my 2 rectangles are
(0, 0, 860, 90)
(920, 0, 360, 210)
These should be stored in an array
Then in my collision which I have setup as
(Human1.x > Human1.speed + RectangleBoundingBoxArray.x + RectangleBoundingBoxArray.w - 1)
Rather than mutliple rows of that code, all my bounds co-ords should be in an array.
As of now I have only managed to collided with 1 rectangle, to me is seems that the array isn't working well inside the collision function.
The code you posted, I will look at in future, as I feel the way we got told to program this is not the easiest nor the best, so next time around I'll be looking into different ways to do it.
Should I use my array like ARRAYNAME, so it has 2 rows and 4 co-ords or is that not needed because I'm reading about them and they say to do that with a 2 dimensonal array.