if all fails i can give you my code i use for bgcollision, see theres two types, 1st is just on a single screen bg, 2nd is with using bgofs which is harder but worth it still.