M
manoelpdb
Guest
Hello! A weird bug is happening when I use collision_line() in GM:S 1.4. I was trying to verify if a collision was happening between two objects but it wasnt working so I decided to use draw_line_colour() to check what was going on so that what I got:
As you can see, even if the origin point of the sprite is 0,0 the red line is not being drawing from its x to its x+sprite_width. This is really weird and annoying. Someone knows why is this happening? I never had experienced this type of bug before!
Edit: Just to add, I manually "fix" the problem adding values to make it set right so I grab those values and used at collision_line(). So it's not just a problem from draw_line_colour() but both and they see to work wrong in the same way.
As you can see, even if the origin point of the sprite is 0,0 the red line is not being drawing from its x to its x+sprite_width. This is really weird and annoying. Someone knows why is this happening? I never had experienced this type of bug before!
Edit: Just to add, I manually "fix" the problem adding values to make it set right so I grab those values and used at collision_line(). So it's not just a problem from draw_line_colour() but both and they see to work wrong in the same way.