Log In  

Cart #simple_collision_det-2 | 2019-06-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

[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 :).

P#65264 2019-06-18 19:12 ( Edited 2019-06-19 21:14)

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

P#65270 2019-06-18 22:28

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

P#65288 2019-06-19 17:32

@steveRoll: Fixed ! :). I made a mistake in the call of the function. Bad Ctrl-c Ctrl-v I guess !

Thanks for your report :-)

P#65291 2019-06-19 21:09

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-20 13:52:16 | 0.021s | Q:21