Unity Typewriter effect for Text

Here is pretty simple Unity MonoBehaviour script that can be used to give Text typewriter effect with blinking cursor at the end.

In the middle there is commented line that can fix moving when typing if you use Align on Center option.

{ Add a Comment }

Unity AI Statemachine example

It is pretty simple and small realisation of statemachine for artifical intelligence in Unity based on MonoBehaviour Components to be able to set values for States in Inspector window.

The Idle.cs is small example of working with Owner and States from inside of State.

{ Add a Comment }

Click 2 Hunt on progress to release

During last month I was developing brand new game. I never tried developing mobile arcades before. Actually, I think this is big step towards professional gamedev or earning money by gamedev.

By the moment I write this article, game is fully working and most of the work is done. There are some issues with design and audio which need to be fixed.


Below are some screenshots of the game:

I don’t say that this game is the best in it’s genre or is going to become hit, but it is really good for my self-development.

{ Add a Comment }

Itch.io games update

I uploaded my unpublished on itch.io games, like VLR or Homeland and Democracy, because I don’t want them to be lost with time in the Web.
I also made v3 of my Homeland and Democracy game, which fixed many bugs. Game is now playable again.
My itch.io profile

{ Add a Comment }

Unity | Smooth camera follow 2D

Camera with this small script will follow Target with gap depending on its speed.

using System.Collections;

using UnityEngine;

public class SmoothFollow2D : MonoBehaviour {
    public Transform Target;
    public Vector3 Offset;
    public float Velocity;
    public float MinDistance;

    // Update is called once per frame
    void LateUpdate() {
        if (Target == null) {

        var targetPos = Target.transform.position + Offset;

        if (Vector3.Distance(transform.position, targetPos) < MinDistance) {
        var newPos = Vector3.Lerp(transform.position, targetPos, Velocity * Time.fixedDeltaTime);

{ Add a Comment }

Unity | Match BoxCollider2D to sprite size

Small script, which can be useful for objects that changes sprites with multiple resolutions and sizes.

public static void MatchToSize(GameObject obj, BoxCollider2D collider = null, SpriteRenderer renderer = null) {
            collider = collider ?? obj.GetComponent();
            renderer = renderer ?? obj.GetComponent();
            Vector2 S = renderer.sprite.bounds.size;
            collider.size = S;
            collider.offset = Vector2.zero;

UPD: Updated to support better optimization by calling with cached Components in args.

{ Add a Comment }

Unity | 2D Color Fade

Small script, that can be used to make color transition in given time. Can be used only for SpriteRenderer.

using System;
using UnityEngine;

public class FadeExt {
        public static IEnumerator Fade(GameObject obj, Color startcolor, Color endcolor,
 float time, SpriteRenderer renderer = null, float tick = 0.01f) {
            renderer = renderer ?? obj.GetComponent();
            var lespspeed = tick / time;

            renderer.color = startcolor;

            while (renderer.color != endcolor) {
                renderer.color = Color.Lerp(renderer.color, endcolor, lespspeed);

                yield return new WaitForSeconds(tick);

{ Add a Comment }

Trends of Indie Games 2017

To make this list, I’ve viewed over 100 games on itchi.io, but it remains to be only my opinion.

1. Original idea:

A good game shouldm’t have deep mechanics, but it needed to be creative.

There are many simple games on itch.io, that are well-bought by players.

2. Simple:

I mean graphics.
I don’t see any games, that look like AAA project, or try to be looking like it.
Pseudo-3D or 2D are still popular due their simplicity for developer.

3. Short:

There are not so many really long games, which could be interesting for couple of hours (like Dota).

Other good games to play:

{ Add a Comment }