Moongate Games UK

"Changing worlds, one line of code at a time"

Developers Post #25: New Style

 Welcome to the 25th Developers Post, the start of this week I'd actually been really productive where I'd released an asset (Click here to find out more) and wrote up a tutorial on using it. But as the week went on my game dev productivity declined... But I did manage to get a few things done.

 Firstly I managed to settle on a new visual style for A Way Home, this style I feel fits the general idea of how I originally intended the game to look when I originally came up with the idea over a year ago. I feel that a more "cartoony" style would help with how I want the game to be seen visually at least, the story is a completely different matter.

 Obviously, there's still a lot of work that needs to be done with it but I think it looks pretty nice! Secondly, I'd managed to make a start on the basic engine images for Escape From Infinity 2D, which I'd thought would take a lot longer but I managed to make 8 or 9 in about 2 hours. Now, I'm not going to go too crazy with these and I may save some for when I do periodic content updates. I'll probably do another 8 or 9 to go in the game on release.

 It's pretty short this week so I'm wrapping this up with the theme of the week!

 This week it's a playlist again with some top notch emotional music! This playlist has generally helped me keep that feeling that I partly want to convey in A Way Home.

Anyway, have an awesome week and I'll catch you all next weekend!.

- Luke.

Tutorial: Grass using Particle Extender.

Subject: Particle Extender

Language: N/A (No scripting needed)

 What is Particle Extender? At the point of writing this, Particle Extender is a single script that you attach to a particle system. This script enables pretty basic things to be done, like spawning a line of particles or spawning some in a rectangular area.

 In this tutorial, we're going to cover how to make grass using this script. There is an example in the asset pack so feel free to have a look at that as well.

 First things first (assuming you've imported the asset package) you'll need to add a new particle system to your scene and make sure that it's set up like in the following image.

 Next, you need to add the ParticleExtender component to the Particle System by clicking the Add Component button and typing ParticleExtender into the search bar like so:

 Once you've added it you'll need to change the settings to the following.

 This will set you up with a basic spawning rectangle that spawns white particles. If we run that now we should get something like this:

 It's a start but it doesn't really look like grass...

 To make it look more like grass we're going to need to change the material in the Renderer to use the GrassMaterial in the Grass example.

 Now if you re-run the scene it looks a bit like grass, but it still needs work.

 So, if you click on the Particle Colours option in the Particle Extender script you'll be presented with the Unity gradient editor window. For this, I already had a preset gradient made up, from the grass example, but feel free to make the gradient how you want.  

 Next you should increase the Particle count to about 500 and if you run it you should get something like this:

 As you can see it looks better but still doesn't look right.

 First things first, I've added a cube and scaled it to cover the bottom parts. I've also noticed that we need to change the Sort mode which by default is set to none. You'll be able to change this by going into the particle system, under the Renderer module and set the Sort Mode to By Distance.

Now that looks much better. Obviously it's not the best looking but put into the right hands, well you get the idea.

I've also been testing this out with my other project A Way Home and plan on using it within the game especially since it'll go really well with the new visual style.

I hope this tutorial helped you out and any feedback or comments are very much appreciated.

Announcement: Particle Extender for Unity3d

 From grass and other foliage to simple or complicated parallax backgrounds the Particle Extender for Unity3D aims to do all that while keeping CPU usage down.

 All it uses is one script and a particle system in a GameObject!

Features

  • Spawning particles in lines, with added distortion if needed! Very useful for things like parallax effects.
  • Spawning in a rectangular area! Brilliant for spawning over a large flat area.
  • Spawning on a mesh surface! Awesome if you only want to spawn in set areas.

It's at the fixed price of $2.50 (about £2.00 currently) and will stay at that for all of it's development regardless of what features get added to it.

If you have any questions, suggestions or comments leave them below.

I hope you all enjoy and make good use of this.