Scraps is a vehicle combat game where you build your vehicle from parts, and where success lies just as much in designing a well-crafted vehicle as in your combat skills. It’s about competitive creativity, and having fun while making horrible design decisions.

Report article RSS Feed Vehicle modification and repair in-game

Vehicle modification and repair in-game in Scraps.

Posted by Nition on Aug 16th, 2014

It's going to be interesting when everything comes together and I can start seeing how full games of Scraps actually play out. The current intended structure of the melee mode is like this:


  • Pre-game Lobby: Starting scrap is set (plus the other game options) and everyone chooses a vehicle that fits within that price range. If they have scrap left over, they'll keep it banked for later.

  • process_landing

  • Game starts and everyone is dropped off at spawn points on the map.

  • process_pickup

  • You can collect wreckage from destroyed parts if you've got a container on your vehicle.

  • process_evac

  • If your vehicle is damaged, you can attempt to reach an Evac Pad. I'll make sure that all chassis provide a little bit of engine power and a little bit of generator power on their own, so you'll never be completely stranded.

  • process_repair

  • After evac, you'll be safe back at the build screen. If you've got scrap to spend - either left over from your starting allowance or scavenged from wreckage on the map - you can repair your vehicle, add new parts, or remove existing ones. I also plan to add a system for collecting whole parts. Above on the right, you can see the new Repair Mode - more on that later.

  • process_return

  • Whenever you're done, you can get dropped off back in the game.
  • If your cockpit or chassis is destroyed, it's more like a traditional kill in an FPS game. You'll respawn with a new vehicle and your death will be recorded in the stats. Any scrap or parts you collected, or changes to your previous vehicle will be lost.

The remains of your previous vehicle will have dropped on the map as wreckage, but I think I need to ban your new vehicle from picking those up. Otherwise you could build up a stockpile by blowing up on purpose and quickly reclaiming your previous wreckage with your new vehicle! Suggestions for game behaviour here are welcome, because maybe there's a good way to handle things that I haven't thought of yet.

This fortnight I've mainly been working on the Game -> Evac -> Build screen and Build -> Game progression, and the stuff you can do on the Build screen while you're there.

Getting it all working required a bit of a shake up of the current code because the in-game build screen has to run alongside the game map with everything still going on in the background. The other option would be that when you returned to the game, you'd reload the map and re-synchronise with the server, picking up the changes to everyone's vehicles, wreckage on the map etc etc since you were last there, all at once. I decided that the better option was to just keep running the game map in the background. Looking at other multiplayer games I own, that seems to be the usual solution. Team Fortress 2 is clearly just loading the character select screens etc on top of the game itself, as is Battlefield: Bad Company 2.

That took a bit of refactoring but things are just about working nicely now, with a few bugs remaining. I also got vehicle modification on the build screen working in multiplayer, so parts can be added and removed and it'll sync over the network, and there's a new Repair Mode.


Damaged vehicle at the top, Repair Mode at the bottom. Repair mode makes it easier to see how damaged each part is with colour-coding,, and also changes interaction so clicking on parts repairs them (if you can afford it) instead of picking them up. There's now also a Repair All button (not shown).

I've still got some things to fix up in this area, then I'll be getting respawning working. You should probably be able to select a different vehicle to spawn with as well, as long as it fits within the game's starting scrap amount.

Bonus screenshot:


Post comment Comments
fascka Aug 16 2014, 4:17pm says:

everything is looking great! have you thought about upgrading parts in the middle of a match?

+2 votes     reply to comment
Nition Author
Nition Aug 17 2014, 5:24am replied:

Parts don't upgrade exactly, but you can basically make all possible modifications to your vehicle during a match if you can afford it. You can repair parts as well as add and remove them.

+2 votes   reply to comment
Rambo987 Aug 17 2014, 2:46am says:

Great concept

+2 votes     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Windows, Mac, Linux
Moment Studio
Send Message
Official Page
Release Date
Game Watch
Track this game
Report Abuse
Report article
Related Games
Scraps Multiplayer Car Combat
Related Engines
Unity Commercial Released May 30, 2005
Related Groups
Moment Studio
Moment Studio Developer & Publisher with 2 members