[FIXED:] Bug that occured when the player was below the grey box. The program was detecting a collision even if it was far below the grey box.
Just a simple collision detection system saw on "Doc_robs" Youtube channel.
Checkout his work guys, it permits me to understand it in no time. :)
https://www.youtube.com/watch?v=LwMNPEG4OPo
And here is a little drawing to understand the code, if you don't want to check the video.
Hope this could help somebody :).



It doesn't seem to be working correctly. It detects a collision if the player is directly below the box.



Oh. Well... I will try to fix it asap. thanks for reporting this issue :)


@steveRoll: Fixed ! :). I made a mistake in the call of the function. Bad Ctrl-c Ctrl-v I guess !
Thanks for your report :-)
[Please log in to post a comment]