See Saw like platform

How do I create a see-saw like platform? I want to create a game using the accelerometer which stays in the middle and does not slide off screen. Example would be character X is on the platform and you lean your iPhone or iPad one direction character X would slide in that direction and you're allowed to slide off, but I want the platform to stay centered.
Comments