Rock, Paper, ShotgUnity, Part 13

By Jim Rossignol on January 23rd, 2010 at 10:41 am.


Post Thirteen in the chronicles of Spong In A Posty Rock, Paper, Shotgunity – the game we’re making using the free Unity development suite – and it’s unlucky for some. That some is YOU. It’s time for some barely coherent rambling, Build 07, after the cut.


Actually it’s all my fault – these things usually are – you see by relying on forumite generated assets I’ve painted myself into a corner. The particular stickiness of the emulsion being: I don’t understand how everything in the game works.

Let’s get one thing clear up front: I love you contributors, with a passion bordering on lust. The fact that people have contributed anything at all is amazing and wonderful – and the efforts a subset of those contributors have gone to are quite overwhelming. But here’s the pickle. I don’t understand some of the contributions. For example Vitamin Powered contributed an excellent menu system, which I’ve been trying to get plugged into Shotgunity, but the trouble is because I didn’t create it, I don’t really know how it all works. That causes problems when you need to adjust something, or use the output of the thing the asset does in some other asset. I’m probably not making much sense – it’s a sort of deadline fever – but bear with me.


The way this project has worked so far is by me tinkering around the edges of things, gradually gaining understanding of how things work and then trying to implement that knowledge into some aspect of the game. Say for example I worked out how to place an object and rotate it over time, I might then place a rotating ball in the world. In the early stages this method worked fine, it fits the autodidact in me like a self made glove, but as the complexity of the beast increased it demanded things that at that time were beyond my grasp. Call in the cavalry! I need a script that does X! And lo, there was cavalry, and a script that did X. Here’s where I made the mistake. I didn’t take the time to learn what that Script that did X was actually doing. It worked, that was enough for me, too busy to digest it now anyway, onwards! That’s coming back to bite me in the behind with the False Teeth of God now.


Another example would be the AI scripts. The recent drive to produce more baddies was successful – if you check the new build you’ll find several new enemy types who’ll grumble and shriek their way towards you with something like animation – but I’ve got a horrible feeling the way I’ve shoehorned them in isn’t going to mesh with the AI scripts properly. In some cases they work fine, but in others they just don’t, and I don’t know why. Similarly problems are arising from the the player controls script, which is yet another thing I didn’t code, so don’t really get. If I’d made these scripts myself, methodically plonking through til they did something like what I wanted, then I’d understand how they work. But I didn’t, so I don’t. So instead I’ve wasted countless hours in these last weeks scratching my head and staring at stuff I can’t fathom while flicking between the Unity Script Ref and Forums looking for eureka-grade inspiration. Time that was far too precious to lose. We’re now at the point where there’s only one full build left before our time’s up (I’m going to squeeze a ‘final’ build out on the following tuesday along with a post mortem) and the chances of getting Shotgunity ‘finished’ are basically nil.


So it’s been achingly slow progress, but we are getting somewhere. Build 07 contains the skeletons for the levels Alec Moor and JimSpace, the latter of which has a musical update which is simply brilliant. In order to get to JimSpace you’ll need to complete the finally-completable (though far from finished) tutorial level. Get through each of the training rooms in the tutorial level and it’ll take you to a Hub room from which you can access both JimSpace and the proto-wilds of Alec Moor. We’ve also got a options menu window in there now for setting mouse sensitivity, restarting levels if you get stuck, and adjusting the music volume… which, as I mentioned, don’t all work yet…

In the final week of Shotgunity I’m going to do my level best to get some kind of WalkerWorld and Gillenopolis up and running, plus finish off JimSpace and Alec Moor. It’s a tall order, and it essentially means abandoning all efforts to improve the AI, or the animations, or the sound or, well pretty much anything. But surprisingly I’m not at all down about this. Shotgunity may never be the game I hoped to make at the start of the project, but I’ve learned so much during the process that the next one just might be…

, , .

12 Comments »

  1. Mike says:

    For me, the following things are broken:

    The number keys don’t work, hence I have no items.
    The grabber disappears after five seconds or so, so I cannot retrieve the rock
    The number of lives doesn’t decrement

    But I know this is all relative and it probably runs fine on others.

    • James Carey says:

      1 – You’re probably just misinterpreting the deactivation of certain weapons in certain rooms as ‘not working’. In the the Tutorial level, the Rock only works in the rock room, the shotgun in the shotgun room and the paper in the lavatory. Sorry the paper room.

      2 – Again, this is probably something to do with misinterpreting the deactivation scripts. When you enter a room in the tut level all your weapons are deactivated until you select one, so even if you walk into the rock room with the rock grabber ‘up’ it will disappear when you enter until you hit the rock grabber key. This is a quirk of the script i used and can prolly be addressed.

      3 – Intentional . In fact lives do decrease, it’s just that they’re replenished upon respawning in the tutorial level, basically i wanted to make it impossible to ‘die’ in the tutorial parts.

      All misinterpretations are my fault of course, not yours ;)

    • Mike says:

      Bless you. Thanks for letting me know about that stuff! I guess it helps you see how ignorant some of your players will be… >_>

      I’ll have another crack at it later, armed with this info.

  2. Rakysh says:

    Call me an idiot, but I can’t seem to install the thing. Is there a guide someone can point me towards?

  3. Premium User Badge

    Tinus says:

    Don’t worry James, this is just what always happens. Being completely new to this, but having ambitious plans and getting stuck in anyway. The end result is almost never what you wanted it to be, but the process of getting there is nonetheless incredibly valuable. Next time you do this kind of thing — and you should, this has been great so far — you’ll be able to dodge many of the pitfalls you’ve encountered the first time.

    A note on using other people’s material: When you’re working on a game with other people, there will always be things you will not understand. It is the job of those other people to make their stuff modular, so that it just works without needing to worry about the inner logic. This process, encapsulation, is something I’d probably focus on for a future project.

    Great job so far! I’ll see about getting the rest of the movement code done before Wednesday.

    Edit: Oh, and Spong in a Posty is definitely a great name.

  4. monkehhh says:

    Great series of posts so far – Jim *really* looks like he doesn’t want you in his space.

  5. Miles of the Machination says:

    I’d love to make some contributions towards this, but I think between learning the Hammer editor, Blender and Maya over these last few weeks has sort of stifled my ability to think. Alas, Unity may have to wait. That and year 12 starts in a few days. But if you need some conceptualisation, I’m more than happy to throw some ideas around.

  6. Dzamir says:

    After 13 episodes, I finally understood the title of the post: Rock Paper ShotgunUNITY -_-

  7. bookwormat says:

    The fact that people have contributed anything at all is amazing and wonderful – and the efforts a subset of those contributors have gone to are quite overwhelming. But here’s the pickle. I don’t understand some of the contributions. .

    This is not surprising: This type of communication/knowledge transfer is the worst bottleneck in software development. Most processes, technologies and tools that we use today (including unity) are more about improving communication between humans than they are about communicating with the machine.

  8. Premium User Badge

    AndrewC says:

    Popped up a demo for the Alec Moor level music. I hope you like it.

    And i’ll also send out one last request that people give me a couple of their favourite ‘you can’t do that’ lines from point’n'click adventures – you know: when you try to combine two incompatible objects, or use a verb the parser doesn’t understand or something.

    I don’t know any myself, you see.