Category Archives: Script

First experience with Spriter

So I want to try to make my crab animation using Spriter so, first I cut out all the different parts from my Inkscape image. I did leave out all but one leg, as I should be able to scale and rotate in Spriter to make all the legs, from one set of leg sprites 🙂 So here are the… (more…)

Unity Draw Call Batching

I was having problems with Unity draw call batching. I’ve started on a small 2d game (Earth Guardian) and had made a small mockup and was already having problems with the number of draw calls 🙁 It looked like I was getting an ekstra draw call for each sprite I created. So I didn’t know what I was doing..! So… (more…)

Unity touch input

My first encounter with Unity touch input didn’t go as I wanted it to.. After some failed attempt and a test scene in Unity, it did started to make sense. And finding out that touch has phases and FingerId’s helped a lot. 😉 So here’s my take on a controller and firing script for my current project. private shieldFingerId = -1;… (more…)

3×3 Version 7

Finally I’ve had some time to work on the 3×3 project, which have resulted in a version 7. I’ve added a particle effect with box meshes, for when boxes are removed. I’m using the color of the removed box to fake the box exploding/being torn apart. I had some difficulty getting the particle effect to use color over lifetime after switching to box… (more…)

Player movement script for the 3×3 POC

I just wanted to show how I chose to do the player control script. After playing the game some more, I’ve decided that the game isn’t going to work on the mobile devises. The swipe to move the player would be very counter intuitive after level 8. For the movement script, I wanted the player to move in a continuous… (more…)

Procedural Mesh Generation in Unity.

Mesh Generation in Unity I come from the good old OpenGL way of doing things and like the control I had with the simple geometry, so when I stumped upon gMaN Ji’s youtube video “Unity Tips and Tricks: Procedural Geometry #1 – Basic Quad” I had to make a small test to see how fast and easy it would be… (more…)