F
Forestherd
Guest
I have noticed something with GM:S and am not sure if it's a bug or me not being aware of something. Basically, I'm trying to make it so that my collision checking logic works with fractional speeds (0.5, 0.18 etc), however, I have noticed that collision checking functions such as place_meeting & instance_place don't really work with fractional values.
I made a test code to prove this:
I spawn my player right next to a wall, so both of their collision boxes are touching, and then run the code - the collision check passes twice, moving the player a total of 1 pixel, into the wall, unable to move out.
So does GM:S collision checking not work with fractional values, or am I missing something here?
I made a test code to prove this:
Code:
if !collision_rectangle(bbox_left,bbox_top,bbox_right+0.5,bbox_bottom,obj_parent_solid,false,true) {
x += 0.5
}
So does GM:S collision checking not work with fractional values, or am I missing something here?