How to make a fighting game, step by step
Start with one fighter who can walk, jump and throw three attacks. Then add the rules for what happens when attacks meet: hitboxes, frame data, blocking and hitstun. Online play comes last, because fighting games need rollback netcode to feel fair.
Checked . Roam is our app, and the Roam team wrote this page. See also: Scratch games to make.
How to make a fighting game in 7 steps
- 1. Pick 2D or 3D, then a tool. 2D is the easier start. Godot, Unity, GameMaker and Ikemen GO all work, and our fighting game maker list compares them.
- 2. One fighter that moves. Walk, jump, crouch and always face the other fighter. Make movement feel good before any attack exists.
- 3. Three attacks with frame data. A fast light, a slow heavy and one special. Each has startup frames (wind-up), active frames (can hit) and recovery frames (open to a counter). At 60 frames per second, one frame is about 17 milliseconds.
- 4. Hitboxes and hurtboxes. A hitbox is where an attack can hit. A hurtbox is where a fighter can be hit. A hit lands only when the two overlap, so set them for each animation frame.
- 5. Block and throw. Block stops attacks, throws beat block, attacks beat throws. That triangle keeps one move from winning every time.
- 6. Hitstun and combos. A hit freezes the target for a few frames. If that freeze lasts longer than your next move's startup, the second hit cannot be blocked. That is a combo.
- 7. A second fighter and rounds. Health bars, a timer, best of three. Test the matchup with a friend on two controllers before you add more moves.
Netcode: why fighting games use rollback
Online, the other player's inputs take time to arrive. Delay-based netcode waits for them, so every press feels late on a bad connection. Rollback netcode runs the game right away with a guess of the other player's input, then rewinds and replays the frames it got wrong.
GGPO, the best-known rollback library, has been free under the MIT license since October 2019. Whatever you use, build the game so the full match state can be saved and restored every frame, or rollback will be hard to add later.
How to make a battle game in Scratch
Scratch is a good place to learn the rules above. Make two sprites with costumes for idle, punch and block. Player 1 uses WASD and player 2 the arrow keys. When a punch costume is showing, check if it is touching the other sprite and lower that player's health variable. Scratch is designed mainly for ages 8 to 16. Roam is rated 13+ on the App Store.
Skip the engine: a duel on Roam
Roam builds the fighter from a description: arena, fighters, moves, art and sound. You tune it by talking, like "make the heavy attack slower" or "add a block button". To feel good timing first, play Split Second, a 1v1 sword duel against the game's fighter, or STREET BRAWL, a side-scrolling beat-'em-up.
Play it on Roam
Create your fighting game with Roam
Pick two fighters and one arena. Play the first version, then change the moves until the rematch feels fair.
Try: "1v1 sword duel on a rooftop at night, light and heavy attack, block button, best of three, my friend is the other fighter"Roam ("Roam - Make Games" on the App Store) is an iPhone app where you play games and make your own by describing them or from a photo. It is free to download and play, and making games works without a subscription; optional Spark and Reality plans and credit packs add more creation. Android: pre-register on Google Play.
Questions people ask
Is it hard to make a fighting game?
One fighter with three moves is a fine first project. The hard parts are balance, animation and online play, since every move needs hitbox and frame work.
What is frame data in fighting games?
The number of frames a move spends in startup, active and recovery. It decides which moves are fast, which are safe and which combos work.
How do you make a battle game in Scratch?
Two sprites, separate keys for each player, a health variable for each, and a touching check while a punch costume is shown. Add a block costume that ignores hits.
Can a 12-year-old make a fighting game?
Scratch is made for that age and has many fighting game remixes to learn from. Roam is rated 13+ on the App Store, so it is for teens and adults.
Sources, checked November 5, 2026
- GGPO rollback networking SDK was released under the MIT license in October 2019: gamedeveloper.com
- Rollback uses input prediction and speculative execution: github.com
- Ikemen GO is an open-source fighting game engine that runs M.U.G.E.N content: github.com
- Scratch is primarily designed for 8 to 16 year olds: scratch.mit.edu
- Scratch hosts remixes of a How to make a Fighting Game project: scratch.mit.edu
Product names belong to their owners. Roam is not affiliated with them.
Keep exploring
- Make a fighting game
- How to make a 2 player game
- How to make a multiplayer game
- How to make a game in Scratch
- How to make a 2D game
- How to make a FPS game
More on Roam: All Roam games Games to play, by kind


