Either you have an instance of the Object that you want the smoke to follow then you can get the x and y of the actor for the smoke, or you check for an intersecting object and then set your x and y to those of the intersecting object (which basically is the same as the first way since your getting an instance of it with the method).