Finally I got the collision detection to work !, I’ve been stuck with this for a long time.
I just couldn’t understand how to make it work and finally after trying several methods I got it to work just as I wanted.
At first following freeaks tutorial I couldn’t get the character to bounce back to the floor after hitting his head in a platform.Then I changed the collision detection method which fix another problem but didn’t let me take the future x,y test the collision and decide what to do,instead the character stopped after touching the platform which didn’t let me move side ways.
FINALLY, I figure out to update the position only after testing for the collision.
This makes me sooo happy because I’ve been stuck with collision detection for weeks,finally I can work in something else and advance with the game,only one month left !