Welcome to this forum, please register and share your experience
static inline bool has_horizontal_collision(void){ int next_pixel; next_pixel = jo_physics_is_going_on_the_right(&physics) ? player.x + 4 : jo_physics_is_going_on_the_left(&physics) ? player.x - 4 : player.x; int attr = jo_map_hitbox_detection_custom_boundaries(WORLD_MAP_ID, map_pos_x + next_pixel + SONIC_WIDTH_2, map_pos_y + player.y, 4, 20); if (attr == JO_MAP_NO_COLLISION) return false; if (attr != MAP_TILE_BLOCK_ATTR) return false; return true;}