Interesting - I actually realized it was NOT set to the platform object, but the sprite that was pinned to the platform object. I added an image point (same position) on the platform object and changed the code, and now it works.
Any idea why it didn't work with a pinned sprite?