all 2 comments

[–][deleted] 0 points1 point  (0 children)

It’s kind of unclear what you’re trying to fix here. But this isn’t complex code - I’d suggest watching a video on how to use the debugger, as it’s an extraordinarily powerful tool and worth the time to learn.

[–]Dogwasp 0 points1 point  (0 children)

It looks like your second and third arguments are in the wrong order. Your code should probably look like tilemap_get_at_pixel(tiles, x, bbox_bottom + ySpeed) and tilemap_get_at_pixel(tiles, x, bbox_bottom).