Work / Puzzle platformer · 2025
The Gravity Flip
A side-scrolling platformer where one key turns the whole world: flip gravity, or bend it ninety degrees, and walk on whatever is now the floor.
- Role
- Solo developer
- When
- 25 Apr – 10 May 2025
- Built with
- Unreal Engine 5 · C++ · Blueprints
- Platform
- Windows
- Status
- Released on itch.io
- levels
- 10
- start to release
- 16 days
- gravity directions
- 4
- download
- 276 MB
Overview
The game
The Gravity Flip is built around a single idea: what if gravity worked the other way? Spikes on the floor? Flip. Exit on the ceiling? Flip. Each level is a small box that only makes sense once you have turned it over a few times.
It is less about difficulty than about the feeling of disorientation and flow as the world turns on its head. I built it alone in sixteen days, with the gameplay code in C++ and the levels, UI and effects in Blueprints.
Systems
How it works
01
A four-way gravity state
The player controller tracks which way is down: floor, ceiling, left wall or right wall. Three inputs change it: turn 90° clockwise, turn 90° counter-clockwise, or flip 180°. Each one sets a new gravity direction on the character's movement component, so jumping, falling and walking all work on any surface.
02
The turn itself
While gravity is changing, input is locked, the character drops to one-tenth speed and the camera rolls to the new orientation. Then time and control come back. That short slow-motion beat is what makes a mid-air flip readable instead of nauseating.
03
Left stays left
When down becomes a wall, the character's sideways axis is now vertical in the world. The controller picks the new movement axis and adds or removes the negate modifier on the A and D key mappings at runtime, so the key that moves you left on screen always moves you left on screen.
04
Props that fall with you
Physics objects turn off the engine's gravity and apply their own force every tick. When the player turns gravity, the controller finds every actor that implements IGravityReceiverInterface and hands it the new direction, so crates fall toward the same floor you do.
05
A camera with a dead zone
A separate camera actor follows the character only once they leave a box in the middle of the frame, with lag on the spring arm. Which world axes count as horizontal and vertical swap when gravity goes sideways.
06
Progress and input mode
A save file records which levels are finished and whether you play with a keyboard or on a touchscreen. The HUD loads a different overlay for each, and the level select unlocks from the saved list.
Step by step
What one key press does
Press E, Q or F
Turn 90° either way, or flip 180°.
Lock and slow
Input off, character at 0.1× time.
New down
Movement component and every gravity receiver get the new direction.
Remap
Movement axis and key modifiers updated.
Camera roll
Camera rotates to match, then control returns.
The hard part
Making the flip feel right
Problem
A responsive gravity flip caused trouble everywhere at once: which way the character faces, what counts as ground, how the camera follows, and what the movement keys mean when the floor is a wall.
Approach
I tied everything to one gravity direction owned by the player controller. The character, the camera, the input mapping and the physics props all read from it or are told when it changes, instead of each guessing on its own.
Result
Gravity can change mid-jump without breaking movement, and the controls stay predictable in all four orientations.
Gallery
Screenshots
Reception
What players said
The gravity-switching mechanic is genius! Makes every level feel fresh and challenging.
Solid af game, works good, smooth, nice mechanic, good idea, keep it up.
Man.. it's already a great fun game. Also, the graphics are so good. I liked every aspect of it.
Good mechanics, I like the concept. It feels a little bit too easy but overall great game. Waiting for more levels.
I enjoyed it while playing man, great work, waiting for more levels.
Amazing concept. It was a fun playthrough.
Note
A decision: no Android release
The game has touch controls and I took an Android build through closed testing on Google Play. It ran well on many phones, but a number of device-specific bugs turned up that would have taken significant time to fix.
Windows was always the main platform, so I stopped the Android release rather than ship something uneven. Thanks to everyone who joined the testing.