Going to try a suggestion from Drona. How do i change an object into another object? - #2 by Drona
The easiest way to do that would be to store the coordinates of object A, delete it and create object B at the stored position of object A.
Another way would be to have different animations (with your object A and B) for the same sprite and change the animation you need in the events.