A simple example on how to make a gravity flip effect in a platform game. CAPX file included.
Note: the player character may occasionally get stuck in the ground when you flip the gravity. To avoid this in your game, I recommend using an invisible hitbox sprite and a separate sprite with actual graphics. Move with [Left/Right arrow keys], jump with [Shift] and flip the gravity with [Spacebar].