Skip to content

Building 2D Games

While the demo showcases a 3D third-person MMO, Open MMORPG fully supports 2D top-down, isometric, and side-scrolling games using the same networking, combat, and database infrastructure.


When building a 2D game, swap the 3D physics and animation components on your entity prefabs for their 2D counterparts:

3D Component2D EquivalentNotes
CharacterControllerRigidbody2DSet Rigidbody2D to Kinematic or configure low linear drag.
CharacterControllerEntityMovementRigidBodyEntityMovement2DHandles 2D X/Y vector locomotion.
CapsuleColliderCapsuleCollider2D / CircleCollider2DHitboxes and world boundaries.
PlayableCharacterModelCharacterModel2DFrame-by-frame 2D sprite animation playback using AnimationClip2D.
WaterArea (3D trigger)WaterArea2D (2D trigger)Water swimming volumes using 2D colliders.

  1. In the Project window, right-click and choose Create → Animation Clip 2D.
  2. Drag your sprite sequence into the frames list.
  3. Set the frame rate (e.g. 12 or 24 frames per second) and loop mode.
  4. On your character entity’s CharacterModel2D component, map the 2D clips to directional movement states (Up, Down, Left, Right).

  • Set your scene camera projection to Orthographic.
  • Configure Unity’s Transparency Sort Mode under Project Settings → Graphics to Custom Axis with (0, 1, 0) so sprites sort based on vertical Y position (characters in front naturally render over characters behind them).