Hi,
I got confused how collide(“type”,x,y) works, as in pic below,
when box move to left, I use collide(“wall”,x,y) and it works fine.[x,y is upper left corner of hitbox].
when box move to right, I thought it should be collide(“wall”, x+width,y) but not, as checked I should use collide(“wall”,x,y) too.
so I got confused, does (x,y) used in collide ( ) is the point used to check ‘hit’ the target? why collide(“wall”,x,y) work when moving right?
thanks.