Sergio Flores

April 12 2017 | 12:00 AM

Custom Sprite Sorting


2D in Unity


It's common to hear that Unity is 'bad for 2d'.
But that is completely false, at best, you can say that Unity's current support for 2D games it a bit lacking, but since Unity is very easy to extend, nothing forbids you from getting something working nice in 2D.

A major question is how to do sorting of sprites in a intuitive way. Meaning, can we define sprites ordering by...

Read more

Tags: #coding #graphics #tutorials #unity3d

Follow me on Twitter for more cool stuff!

Sergio Flores

June 22 2017 | 12:00 AM

The Art of Lerp


If you are making a game, you probably already learned about Lerp functions, aka Mathf.Lerp() in Unity, lerp() in GameMaker and similar names in other engines.
In any case, this article will be interesting for both newbies and more experienced developers.

What exactly is a LERP?


I've seen many developers use Lerp without understanding what it is, including many that just think it is just a function to ease...

Read more

Tags: #coding #math #tutorials

Follow me on Twitter for more cool stuff!

Sergio Flores

September 14 2017 | 05:20 PM

How Skeletal Animation Actually Works


In this post I'm going to try to explain properly how Skeletal Animation works, mostly in the context of Unity, although I'm going to present the general algorithms that lets you implement it in any engine.

A simple way to Animate
Let's assume that you already know the basics about a 3d Model in the context of a game engine.
A model has some vertices, which when connected we get triangles describing the...

Read more

Tags: #coding #graphics #tutorials #unity3d #math

Follow me on Twitter for more cool stuff!